diff options
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 2c0c1aa9..7bf7325a 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -236,7 +236,12 @@ void view_autoconfigure(struct sway_view *view) { | |||
236 | view->border_top = false; | 236 | view->border_top = false; |
237 | } | 237 | } |
238 | 238 | ||
239 | switch (view->border) { | 239 | enum sway_container_border border = view->border; |
240 | if (view->using_csd) { | ||
241 | border = B_NONE; | ||
242 | } | ||
243 | |||
244 | switch (border) { | ||
240 | case B_NONE: | 245 | case B_NONE: |
241 | x = con->x; | 246 | x = con->x; |
242 | y = con->y + y_offset; | 247 | y = con->y + y_offset; |