mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
xwayland: set _NET_WORKAREA property based on usable area
XWayland clients use the _NET_WORKAREA root window property to determine how much of the screen is not covered by panels/docks. The property is used for example by Qt to determine areas of the screen that popup menus should not overlap (see QScreen::availableVirtualGeometry). Depends on wlroots MR: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4406 v2: prevent calling wlr_xwayland_set_workareas() too early v3: fix segfault at exit (server->xwayland == NULL)
This commit is contained in:
parent
5a2df57363
commit
6b8c79748a
3 changed files with 89 additions and 0 deletions
|
|
@ -58,5 +58,7 @@ void xwayland_server_init(struct server *server,
|
|||
struct wlr_compositor *compositor);
|
||||
void xwayland_server_finish(struct server *server);
|
||||
|
||||
void xwayland_update_workarea(struct server *server);
|
||||
|
||||
#endif /* HAVE_XWAYLAND */
|
||||
#endif /* LABWC_XWAYLAND_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue