Commit 16bdd7f2 authored by Olivier Fourdan's avatar Olivier Fourdan 🛠

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's avatarOlivier Fourdan <fourdan@xfce.org>
parent 9b77e071
Pipeline #4888 passed with stages
in 2 minutes and 56 seconds
......@@ -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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment