summaryrefslogtreecommitdiff
path: root/src/netwm.c
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2020-12-17 20:23:57 +0100
committerOlivier Fourdan <fourdan@xfce.org>2020-12-17 20:23:57 +0100
commit16bdd7f22221ac0e62384883a6aeab0d7d998733 (patch)
tree30b6469595fa8611c48bea3928207b5a94a073d6 /src/netwm.c
parent9b77e0719a1478a106835448793a4d1ae20309dc (diff)
downloadxfwm4-16bdd7f22221ac0e62384883a6aeab0d7d998733.tar.gz
netwm: Allow above/below only for regular windows
That makes it consistent with what xfwm4 allows from its own UI. Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
Diffstat (limited to 'src/netwm.c')
-rw-r--r--src/netwm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/netwm.c b/src/netwm.c
index 7c9838fc5..b5ed2b36d 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -1171,10 +1171,13 @@ clientSetNetActions (Client * c)
/* Actions available for all */
atoms[i++] = display_info->atoms[NET_WM_ACTION_CLOSE];
- atoms[i++] = display_info->atoms[NET_WM_ACTION_ABOVE];
- atoms[i++] = display_info->atoms[NET_WM_ACTION_BELOW];
/* Actions depending on the window type and current status */
+ if (c->type & WINDOW_REGULAR_FOCUSABLE)
+ {
+ atoms[i++] = display_info->atoms[NET_WM_ACTION_ABOVE];
+ atoms[i++] = display_info->atoms[NET_WM_ACTION_BELOW];
+ }
if (FLAG_TEST (c->xfwm_flags, XFWM_FLAG_VISIBLE))
{
atoms[i++] = display_info->atoms[NET_WM_ACTION_FULLSCREEN];