summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Lukas Lihotzki <lukas@lihotzki.de>2016-09-02 00:46:36 +0200
committerLibravatar Lukas Lihotzki <lukas@lihotzki.de>2016-09-02 01:16:03 +0200
commit6addaca9fafbc20a0fa52f630e1002d6d9240b8f (patch)
treeb0e1610749f69e30a6a2d571519113041fdfcb4c
parentTweak how swaylock surfaces are handled (diff)
downloadsway-6addaca9fafbc20a0fa52f630e1002d6d9240b8f.tar.gz
sway-6addaca9fafbc20a0fa52f630e1002d6d9240b8f.tar.zst
sway-6addaca9fafbc20a0fa52f630e1002d6d9240b8f.zip
Correct `hide_edge_borders` command
`vertical` and `horizontal` should be swapped. If border_left and border_right were set to 0, the vertical borders instead of the horizontal borders would be hidden. i3 handles this command equally.
-rw-r--r--sway/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/layout.c b/sway/layout.c
index cf6a111e..7f053d9b 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -575,7 +575,7 @@ void update_geometry(swayc_t *container) {
575 575
576 // handle hide_edge_borders 576 // handle hide_edge_borders
577 if (config->hide_edge_borders != E_NONE && (gap <= 0 || (config->smart_gaps && workspace->children->length == 1))) { 577 if (config->hide_edge_borders != E_NONE && (gap <= 0 || (config->smart_gaps && workspace->children->length == 1))) {
578 if (config->hide_edge_borders == E_HORIZONTAL || config->hide_edge_borders == E_BOTH) { 578 if (config->hide_edge_borders == E_VERTICAL || config->hide_edge_borders == E_BOTH) {
579 if (geometry.origin.x == workspace->x) { 579 if (geometry.origin.x == workspace->x) {
580 border_left = 0; 580 border_left = 0;
581 } 581 }
@@ -585,7 +585,7 @@ void update_geometry(swayc_t *container) {
585 } 585 }
586 } 586 }
587 587
588 if (config->hide_edge_borders == E_VERTICAL || config->hide_edge_borders == E_BOTH) { 588 if (config->hide_edge_borders == E_HORIZONTAL || config->hide_edge_borders == E_BOTH) {
589 if (geometry.origin.y == workspace->y || should_hide_top_border(container, geometry.origin.y)) { 589 if (geometry.origin.y == workspace->y || should_hide_top_border(container, geometry.origin.y)) {
590 border_top = 0; 590 border_top = 0;
591 } 591 }