xwayland: treat X11 panel views as if fixedPosition rule is set

This commit is contained in:
John Lindgren 2023-11-27 17:11:29 -05:00 committed by Johan Malm
parent 0a5255f062
commit 83e67b32b6
4 changed files with 33 additions and 2 deletions

View file

@ -35,7 +35,9 @@ interactive_begin(struct view *view, enum input_mode mode, uint32_t edges)
return;
}
if (window_rules_get_property(view, "fixedPosition") == LAB_PROP_TRUE) {
/* Prevent moving/resizing fixed-position and panel-like views */
if (window_rules_get_property(view, "fixedPosition") == LAB_PROP_TRUE
|| view_has_strut_partial(view)) {
return;
}