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/tree/view.c | |
parent | abcc2ef9eb90af3aea7d2eed9cd9800d0ce1e14c (diff) |
Don't disable borders for xwayland floating views
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 20cbaf1c..b356183c 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -315,7 +315,11 @@ void view_set_activated(struct sway_view *view, bool activated) { } void view_set_tiled(struct sway_view *view, bool tiled) { - view->border = tiled ? config->border : B_NONE; + bool csd = true; + if (view->impl->has_client_side_decorations) { + csd = view->impl->has_client_side_decorations(view); + } + view->border = tiled || !csd ? config->border : B_NONE; if (view->impl->set_tiled) { view->impl->set_tiled(view, tiled); } |