summaryrefslogtreecommitdiffstats
path: root/sway/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 01c8e4e3..7f053d9b 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -2,17 +2,17 @@
2#include <stdbool.h> 2#include <stdbool.h>
3#include <math.h> 3#include <math.h>
4#include <wlc/wlc.h> 4#include <wlc/wlc.h>
5#include "extensions.h" 5#include "sway/extensions.h"
6#include "log.h" 6#include "sway/config.h"
7#include "sway/container.h"
8#include "sway/workspace.h"
9#include "sway/focus.h"
10#include "sway/output.h"
11#include "sway/ipc-server.h"
12#include "sway/border.h"
13#include "sway/layout.h"
7#include "list.h" 14#include "list.h"
8#include "config.h" 15#include "log.h"
9#include "container.h"
10#include "workspace.h"
11#include "focus.h"
12#include "output.h"
13#include "ipc-server.h"
14#include "border.h"
15#include "layout.h"
16 16
17swayc_t root_container; 17swayc_t root_container;
18list_t *scratchpad; 18list_t *scratchpad;
@@ -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 }