handle locked windows in client list menus also. this is a really stupid way of doing it.
[mikachu/openbox.git] / openbox / client_list_menu.c
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);