]> Dogcows Code - chaz/openbox/blobdiff - src/blackbox.cc
save the right number of workspaces to the rc when adding/removing one
[chaz/openbox] / src / blackbox.cc
index c93b28a6331683a727333f07ac746234483e31a1..1c543bbea69c155fd2de41a7630783f40a0e5554 100644 (file)
@@ -559,11 +559,14 @@ void Blackbox::process_event(XEvent *e) {
   }
 
   case FocusIn: {
-    if (e->xfocus.detail != NotifyNonlinear) {
+    if (e->xfocus.detail != NotifyNonlinear &&
+        e->xfocus.detail != NotifyAncestor) {
       /*
         don't process FocusIns when:
         1. the new focus window isn't an ancestor or inferior of the old
         focus window (NotifyNonlinear)
+        make sure to allow the FocusIn when the old focus window was an
+        ancestor but didn't have a parent, such as root (NotifyAncestor)
       */
       break;
     }
This page took 0.022129 seconds and 4 git commands to generate.