diff options
author | emersion <contact@emersion.fr> | 2018-07-12 20:01:33 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-07-12 20:01:33 +0100 |
commit | 9b16227ec3cfc648f177f186d29b9f0002b7bbde (patch) | |
tree | ee6301c035e72ade212ed85c53df867e31bf72cb /sway/desktop/xwayland.c | |
parent | abcc2ef9eb90af3aea7d2eed9cd9800d0ce1e14c (diff) |
Don't disable borders for xwayland floating views
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 4e5cea7d..460d1cc8 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c @@ -246,6 +246,14 @@ static bool wants_floating(struct sway_view *view) { return false; } +static bool has_client_side_decorations(struct sway_view *view) { + if (xwayland_view_from_view(view) == NULL) { + return false; + } + struct wlr_xwayland_surface *surface = view->wlr_xwayland_surface; + return surface->decorations != WLR_XWAYLAND_SURFACE_DECORATIONS_ALL; +} + static void _close(struct sway_view *view) { if (xwayland_view_from_view(view) == NULL) { return; @@ -269,6 +277,7 @@ static const struct sway_view_impl view_impl = { .set_tiled = set_tiled, .set_fullscreen = set_fullscreen, .wants_floating = wants_floating, + .has_client_side_decorations = has_client_side_decorations, .close = _close, .destroy = destroy, }; |