diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-24 21:50:35 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-24 21:50:35 +0000 |
| commit | f638c5b8fac29cffb62de1f6cab351b48afda918 (patch) | |
| tree | ca361c5e42ae3d5260610ad065c64cfddda6c1a0 /openbox/focus.c | |
| parent | 70fc99f90eac59498e603a38cdb583e9f4536cba (diff) | |
some focus changes...
1) listen for inferiornotify. that way when iconify animating reverts to parent, we see it.
2) set client to null when falling back and update the root window property
3) get rid of the "focus didnt move anywhere" business, and just process the envents in the right order.
Diffstat (limited to 'openbox/focus.c')
| -rw-r--r-- | openbox/focus.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 42241224..40e18872 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -186,12 +186,8 @@ void focus_nothing() screen_install_colormap(NULL, TRUE); } - /* Don't set focus_client to NULL here. It will be set to NULL when the - FocusOut event comes. Otherwise, if we focus nothing and then focus the - same window again, The focus code says nothing changed, but focus_client - ends up being NULL anyways. - focus_client = NULL; - */ + /* nothing is focused, update the colormap and _the root property_ */ + focus_set_client(NULL); /* if there is a grab going on, then we need to cancel it. if we move focus during the grab, applications will get NotifyWhileGrabbed events |
