mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -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
|
|
@ -112,6 +112,8 @@ struct view_impl {
|
|||
struct view_size_hints (*get_size_hints)(struct view *self);
|
||||
/* if not implemented, VIEW_WANTS_FOCUS_ALWAYS is assumed */
|
||||
enum view_wants_focus (*wants_focus)(struct view *self);
|
||||
/* returns true if view reserves space at screen edge */
|
||||
bool (*has_strut_partial)(struct view *self);
|
||||
};
|
||||
|
||||
struct view {
|
||||
|
|
@ -431,6 +433,14 @@ void view_append_children(struct view *view, struct wl_array *children);
|
|||
*/
|
||||
bool view_is_related(struct view *view, struct wlr_surface *surface);
|
||||
|
||||
/**
|
||||
* view_has_strut_partial() - returns true for views that reserve space
|
||||
* at a screen edge (e.g. panels). These views are treated as if they
|
||||
* have the fixedPosition window rule: i.e. they are not restricted to
|
||||
* the usable area and cannot be moved/resized interactively.
|
||||
*/
|
||||
bool view_has_strut_partial(struct view *view);
|
||||
|
||||
const char *view_get_string_prop(struct view *view, const char *prop);
|
||||
void view_update_title(struct view *view);
|
||||
void view_update_app_id(struct view *view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue