diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-17 20:16:32 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-17 20:16:32 +0000 |
| commit | 75b07a2bb3b98d581b39d3991cf1e9068452264a (patch) | |
| tree | 564d2659f98758759036f96f779d854092772bea /openbox/focus.c | |
| parent | 033bd73e7e80c13af0a7724f7f48eda0a7410e65 (diff) | |
all events are dispatched
Diffstat (limited to 'openbox/focus.c')
| -rw-r--r-- | openbox/focus.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 4ef4b90c..db78183d 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -2,6 +2,7 @@ #include "client.h" #include "screen.h" #include "prop.h" +#include "dispatch.h" #include <X11/Xlib.h> @@ -46,11 +47,15 @@ void focus_set_client(Client *client) XSetInputFocus(ob_display, focus_backup, RevertToNone, CurrentTime); } + if (focus_client != NULL) + dispatch_client(Event_Client_Unfocus, focus_client); + focus_client = client; /* set the NET_ACTIVE_WINDOW hint */ active = client ? client->window : None; PROP_SET32(ob_root, net_active_window, window, active); - /*HOOKFIRECLIENT(focused, client);XXX*/ + if (focus_client != NULL) + dispatch_client(Event_Client_Focus, focus_client); } |
