handle locked windows in client list menus also. this is a really stupid way of doing it. mikabox/lock
authorMikael Magnusson <mikachu@gmail.com>
Fri, 8 Jan 2010 18:51:57 +0000 (19:51 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Sat, 11 Oct 2014 00:17:19 +0000 (02:17 +0200)
openbox/client_list_combined_menu.c
openbox/client_list_menu.c

index c26b6fa..395d6d0 100644 (file)
@@ -119,7 +119,7 @@ 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 */
+        if (t && !t->locked) { /* it's set to NULL if its destroyed */
             gboolean here = state & ShiftMask;
 
             client_activate(t, TRUE, here, TRUE, TRUE, TRUE);
index f3df2a5..92916cf 100644 (file)
@@ -99,7 +99,7 @@ static void desk_menu_execute(ObMenuEntry *self, ObMenuFrame *f,
                               ObClient *c, guint state, gpointer data)
 {
     ObClient *t = self->data.normal.data;
-    if (t) { /* it's set to NULL if its destroyed */
+    if (t && !t->locked) { /* it's set to NULL if its destroyed */
         gboolean here = state & ShiftMask;
 
         client_activate(t, TRUE, here, TRUE, TRUE, TRUE);