]> Dogcows Code - chaz/openbox/commitdiff
don't make delayed focus-follows-mouse interupt menus and move/resizes
authorDana Jansens <danakj@orodu.net>
Fri, 3 Aug 2007 23:50:36 +0000 (19:50 -0400)
committerDana Jansens <danakj@orodu.net>
Fri, 3 Aug 2007 23:50:36 +0000 (19:50 -0400)
openbox/event.c

index 62778bce829fb6264c0dc22d714409b4f85dbd7b..522305a821765728cbd8816c59f33032d4fc6898 100644 (file)
@@ -1837,6 +1837,9 @@ static gboolean focus_delay_func(gpointer data)
     ObFocusDelayData *d = data;
     Time old = event_curtime;
 
+    /* don't move focus and kill the menu or the move/resize */
+    if (menu_frame_visible || moveresize_in_progress) return FALSE;
+
     event_curtime = d->time;
     if (focus_client != d->client) {
         if (client_focus(d->client) && config_focus_raise)
This page took 0.024106 seconds and 4 git commands to generate.