diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-12 17:31:11 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-12 17:31:11 +0000 |
| commit | d47c6a0979e420c74b4bfe1c38e9980517b3a29d (patch) | |
| tree | 307c3ff3ff3bf49d128ec934d01d3879c1738bc2 /openbox/client.c | |
| parent | dc41c78a90e427e8b22789e413ebce69faf82975 (diff) | |
fallback is still getting x errors. instead, fallback when the client iconifies, and don't fallback when nothing has focus, send it to where we can control things though.
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c index be61a806..b561f4e2 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2426,6 +2426,10 @@ static void client_iconify_recursive(ObClient *self, bottom'. */ focus_order_to_top(self); + /* Fall back focus since we're disappearing */ + if (focus_client == self) + client_unfocus(self); + changed = TRUE; } } else { @@ -2992,8 +2996,9 @@ gboolean client_focus(ObClient *self) return TRUE; } -/* Used when the current client is closed, focus_last will then prevent - * focus from going to the mouse pointer */ +/* Used when the current client is closed or otherwise hidden, focus_last will + then prevent focus from going to the mouse pointer +*/ void client_unfocus(ObClient *self) { if (focus_client == self) { |
