From 28bb32e6b9aa277b93c6c5e12e87c2cb83115902 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan <fourdan.olivier@wanadoo.fr> Date: Sat, 26 Apr 2003 09:03:03 +0000 Subject: [PATCH] Improve net allowed actions (Old svn revision: 11077) --- src/client.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/client.c b/src/client.c index 25da637ea..cad546761 100644 --- a/src/client.c +++ b/src/client.c @@ -892,11 +892,17 @@ static void clientSetNetActions(Client * c) Atom atoms[6]; int i = 0; - atoms[i++] = net_wm_action_change_desktop; atoms[i++] = net_wm_action_close; - atoms[i++] = net_wm_action_maximize_horz; - atoms[i++] = net_wm_action_maximize_vert; - atoms[i++] = net_wm_action_stick; + if(CLIENT_CAN_MAXIMIZE_WINDOW(c)) + { + atoms[i++] = net_wm_action_maximize_horz; + atoms[i++] = net_wm_action_maximize_vert; + } + if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_HAS_STICK)) + { + atoms[i++] = net_wm_action_change_desktop; + atoms[i++] = net_wm_action_stick; + } if(CLIENT_FLAG_TEST(c, CLIENT_FLAG_HAS_BORDER)) { atoms[i++] = net_wm_action_shade; -- GitLab