output,xwayland: Add support for _NET_WM_SUPPORT_PARTIAL

Account for space taken up by XWayland panels (as indicated by the
_NET_WM_SUPPORT_PARTIAL property) in the usable_area calculation.

This makes it possible to use labwc in a "transitional" setup, where it
replaces the X11 window manager and compositor, but most other parts of
a existing X11 desktop environment can still be used via XWayland.

(Some remaining drawbacks of such a setup would be the lack of desktop
icons, and native Wayland clients not showing up in X11-based taskbars.)
This commit is contained in:
John Lindgren 2022-11-22 05:11:50 -05:00
parent f555308d85
commit 677dc9baf9
4 changed files with 130 additions and 0 deletions

View file

@ -55,6 +55,8 @@ enum view_wants_focus {
};
struct view;
struct wlr_output;
struct wlr_output_layout;
struct wlr_surface;
/* Basic size hints (subset of XSizeHints from X11) */