summaryrefslogtreecommitdiff
path: root/openbox/focus.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-13 21:57:00 +0000
committerDana Jansens <danakj@orodu.net>2007-05-13 21:57:00 +0000
commit65a176330a07cfc965b0e5cd98e014aba4e1672c (patch)
tree402993846a726c621213eab0ea8e72d5d55e4742 /openbox/focus.c
parent82432ae4d040ec999421f2a037825293a65170e6 (diff)
dont set focus_client to NULL when sending focus to nothing, let that happen from the FocusOut events
Diffstat (limited to 'openbox/focus.c')
-rw-r--r--openbox/focus.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbox/focus.c b/openbox/focus.c
index 72588a30..f947fe33 100644
--- a/openbox/focus.c
+++ b/openbox/focus.c
@@ -302,7 +302,13 @@ 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;
+ */
+
focus_tried = NULL; /* focus isn't "trying" to go anywhere now */
/* if there is a grab going on, then we need to cancel it. if we move