]> Dogcows Code - chaz/openbox/blobdiff - openbox/client_list_combined_menu.c
when holding Shift for the client list menus, bring the selected client to the curren...
[chaz/openbox] / openbox / client_list_combined_menu.c
index 593010ebf5fd4691d50570e97cd31818bfab9ec9..5b79b806b09d3e6a22ca62ee566eeef7e2817e53 100644 (file)
@@ -114,10 +114,12 @@ static void menu_execute(ObMenuEntry *self, ObMenuFrame *f,
     else {
         ObClient *t = self->data.normal.data;
         if (t) { /* it's set to NULL if its destroyed */
-            client_activate(t, TRUE, FALSE, TRUE, TRUE, TRUE);
+            gboolean here = state & ShiftMask;
+
+            client_activate(t, TRUE, here, TRUE, TRUE, TRUE);
             /* if the window is omnipresent then we need to go to its
                desktop */
-            if (t->desktop == DESKTOP_ALL)
+            if (!here && t->desktop == DESKTOP_ALL)
                 screen_set_desktop(self->id, FALSE);
         }
         else
This page took 0.021743 seconds and 4 git commands to generate.