aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c7
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) {
view->border_top = false;
}
- switch (view->border) {
+ enum sway_container_border border = view->border;
+ if (view->using_csd) {
+ border = B_NONE;
+ }
+
+ switch (border) {
case B_NONE:
x = con->x;
y = con->y + y_offset;