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 c26b6fa036f3da35c874d068c07b67e50ee13b07..395d6d08af35f755d724c51e52ea55f679fcd7bd 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 f3df2a5aec1ba5a4e209bfad744e006cfd6e5ad3..92916cf5d18df2f30daccca549d93ea8529c3974 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);