mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
xwayland: treat X11 panel views as if fixedPosition rule is set
This commit is contained in:
parent
0a5255f062
commit
83e67b32b6
4 changed files with 33 additions and 2 deletions
12
src/view.c
12
src/view.c
|
|
@ -593,7 +593,9 @@ view_adjust_floating_geometry(struct view *view, struct wlr_box *geometry)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (window_rules_get_property(view, "fixedPosition") == LAB_PROP_TRUE) {
|
||||
/* Avoid moving panels out of their own reserved area ("strut") */
|
||||
if (window_rules_get_property(view, "fixedPosition") == LAB_PROP_TRUE
|
||||
|| view_has_strut_partial(view)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -1550,6 +1552,14 @@ view_is_related(struct view *view, struct wlr_surface *surface)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
view_has_strut_partial(struct view *view)
|
||||
{
|
||||
assert(view);
|
||||
return view->impl->has_strut_partial &&
|
||||
view->impl->has_strut_partial(view);
|
||||
}
|
||||
|
||||
const char *
|
||||
view_get_string_prop(struct view *view, const char *prop)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue