]> Dogcows Code - chaz/openbox/commitdiff
while doing a moveresize, the client actions act on will be the client being moveresized
authorDana Jansens <danakj@orodu.net>
Thu, 18 Sep 2003 06:09:44 +0000 (06:09 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 18 Sep 2003 06:09:44 +0000 (06:09 +0000)
openbox/event.c

index 051e29c03556edb0b13b230afaeec05c4024d1dc..d3e5ad72d4d1ea44b8ffd0d44a29b5bfd3cdea30 100644 (file)
@@ -541,9 +541,14 @@ static void event_process(const XEvent *ec, gpointer data)
             event_handle_menu(e);
         else {
             if (!keyboard_process_interactive_grab(e, &client)) {
-                if (moveresize_in_progress)
+                if (moveresize_in_progress) {
                     moveresize_event(e);
 
+                    /* make further actions work on the client being
+                       moved/resized */
+                    client = moveresize_client;
+                }
+
                 menu_can_hide = FALSE;
                 ob_main_loop_timeout_add(ob_main_loop,
                                          G_USEC_PER_SEC / 4,
@@ -558,8 +563,7 @@ static void event_process(const XEvent *ec, gpointer data)
                        causes the window which appears to be focused to be
                        the one on which the actions will be executed */
                     keyboard_event((focus_cycle_target ?
-                                    focus_cycle_target :
-                                    (client ? client : focus_client)), e);
+                                    focus_cycle_target : client), e);
             }
         }
     }
This page took 0.023719 seconds and 4 git commands to generate.