diff options
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) { | |||
315 | } | 315 | } |
316 | 316 | ||
317 | void view_set_tiled(struct sway_view *view, bool tiled) { | 317 | void view_set_tiled(struct sway_view *view, bool tiled) { |
318 | view->border = tiled ? config->border : B_NONE; | 318 | bool csd = true; |
319 | if (view->impl->has_client_side_decorations) { | ||
320 | csd = view->impl->has_client_side_decorations(view); | ||
321 | } | ||
322 | view->border = tiled || !csd ? config->border : B_NONE; | ||
319 | if (view->impl->set_tiled) { | 323 | if (view->impl->set_tiled) { |
320 | view->impl->set_tiled(view, tiled); | 324 | view->impl->set_tiled(view, tiled); |
321 | } | 325 | } |