mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
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:
parent
f555308d85
commit
677dc9baf9
4 changed files with 130 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ struct xwayland_view {
|
|||
struct wl_listener set_class;
|
||||
struct wl_listener set_decorations;
|
||||
struct wl_listener set_override_redirect;
|
||||
struct wl_listener set_strut_partial;
|
||||
|
||||
/* Not (yet) implemented */
|
||||
/* struct wl_listener set_role; */
|
||||
|
|
@ -52,5 +53,9 @@ void xwayland_server_init(struct server *server,
|
|||
struct wlr_compositor *compositor);
|
||||
void xwayland_server_finish(struct server *server);
|
||||
|
||||
void xwayland_adjust_usable_area(struct view *view,
|
||||
struct wlr_output_layout *layout, struct wlr_output *output,
|
||||
struct wlr_box *usable);
|
||||
|
||||
#endif /* HAVE_XWAYLAND */
|
||||
#endif /* LABWC_XWAYLAND_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue