]> Dogcows Code - chaz/openbox/commitdiff
dont set focus_client to NULL when sending focus to nothing, let that happen from...
authorDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 21:57:00 +0000 (21:57 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 21:57:00 +0000 (21:57 +0000)
openbox/focus.c

index 72588a30a958b0bcacafbbc472d57565d3d9e25a..f947fe33fd5f8e587acfdbd8a4eac890dc15bcb6 100644 (file)
@@ -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
This page took 0.023151 seconds and 4 git commands to generate.