don't hide the dock when the mouse goes into a dock app
authorDana Jansens <danakj@orodu.net>
Wed, 30 May 2007 17:55:36 +0000 (17:55 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 30 May 2007 17:55:36 +0000 (17:55 +0000)
openbox/event.c

index 154b834..f5da603 100644 (file)
@@ -1509,7 +1509,9 @@ static void event_handle_dock(ObDock *s, XEvent *e)
         dock_hide(FALSE);
         break;
     case LeaveNotify:
-        dock_hide(TRUE);
+        /* don't hide when moving into a dock app */
+        if (e->xcrossing.detail != NotifyInferior)
+            dock_hide(TRUE);
         break;
     }
 }