]> git.mdlowis.com Git - proto/labwc.git/commit
xwayland: set _NET_WORKAREA property based on usable area
authorJohn Lindgren <john@jlindgren.net>
Tue, 24 Oct 2023 17:49:15 +0000 (13:49 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 27 Nov 2023 22:08:43 +0000 (22:08 +0000)
commit6b8c79748a8eb3ebd06907b9c564b6b936eb635f
tree38afb4d7155f7c15c2bf76d4a20cb754e9a3b5d4
parent5a2df573635ceb2d414e03653ef9979992a0fcd6
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)
include/xwayland.h
src/output.c
src/xwayland.c