From b306298558823167bc4e15d4def8ff21381135fb Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 19 Feb 2009 17:52:57 +0100 Subject: [PATCH] handle locked windows in client list menus also. this is a really stupid way of doing it. --- openbox/client_list_combined_menu.c | 2 +- openbox/client_list_menu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openbox/client_list_combined_menu.c b/openbox/client_list_combined_menu.c index 2b2ff47d..1bb9aac7 100644 --- a/openbox/client_list_combined_menu.c +++ b/openbox/client_list_combined_menu.c @@ -122,7 +122,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 */ client_activate(t, FALSE, TRUE, TRUE, TRUE); /* if the window is omnipresent then we need to go to its desktop */ diff --git a/openbox/client_list_menu.c b/openbox/client_list_menu.c index 3fdd179b..ad6f7c26 100644 --- a/openbox/client_list_menu.c +++ b/openbox/client_list_menu.c @@ -103,7 +103,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 */ client_activate(t, FALSE, TRUE, TRUE, TRUE); /* if the window is omnipresent then we need to go to its desktop */ -- 2.34.1