xwayland: add wlr_xwayland_set_workareas()

This function allows compositors to set the _NET_WORKAREA property on
the root window. XWayland clients use _NET_WORKAREA 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).
This commit is contained in:
John Lindgren 2023-10-24 10:33:50 -04:00
parent 2410710a0f
commit af165acb42
3 changed files with 34 additions and 0 deletions

View file

@ -88,6 +88,7 @@ enum atom_name {
DND_ACTION_PRIVATE,
NET_CLIENT_LIST,
NET_CLIENT_LIST_STACKING,
NET_WORKAREA,
ATOM_LAST // keep last
};