diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-31 14:39:50 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-31 16:50:54 -0500 |
| commit | e0c1978c516e3463ec3fdd66fba323fd514e2494 (patch) | |
| tree | 6ccbb16ae5ace203aaa9accf00e831f656980184 /openbox/event.c | |
| parent | 45e2039a58d41a9e104a61232b30cea5d3d2fce6 (diff) | |
generalize the window managing process into window_manage, which handles dock apps and the like
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/openbox/event.c b/openbox/event.c index 28381942..5207e093 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -161,7 +161,13 @@ static Window event_get_window(XEvent *e) case SelectionClear: window = obt_root(ob_screen); break; + case CreateNotify: + window = e->xcreatewindow.window; + break; case MapRequest: + window = e->xmaprequest.window; + break; + case MapNotify: window = e->xmap.window; break; case UnmapNotify: @@ -639,7 +645,7 @@ static void event_process(const XEvent *ec, gpointer data) else if (window == obt_root(ob_screen)) event_handle_root(e); else if (e->type == MapRequest) - client_manage(window); + window_manage(window); else if (e->type == MappingNotify) { /* keyboard layout changes for modifier mapping changes. reload the modifier map, and rebind all the key bindings as appropriate */ @@ -1625,13 +1631,13 @@ static void event_handle_dockapp(ObDockApp *app, XEvent *e) app->ignore_unmaps--; break; } - dock_remove(app, TRUE); + dock_unmanage(app, TRUE); break; case DestroyNotify: - dock_remove(app, FALSE); + dock_unmanage(app, FALSE); break; case ReparentNotify: - dock_remove(app, FALSE); + dock_unmanage(app, FALSE); break; case ConfigureNotify: dock_app_configure(app, e->xconfigure.width, e->xconfigure.height); |
