Merge pull request #878 from lukaslihotzki/master

Correct `hide_edge_borders` command
master
Drew DeVault 8 years ago committed by GitHub
commit 4e6d7b1258

@ -575,7 +575,7 @@ void update_geometry(swayc_t *container) {
// handle hide_edge_borders // handle hide_edge_borders
if (config->hide_edge_borders != E_NONE && (gap <= 0 || (config->smart_gaps && workspace->children->length == 1))) { if (config->hide_edge_borders != E_NONE && (gap <= 0 || (config->smart_gaps && workspace->children->length == 1))) {
if (config->hide_edge_borders == E_HORIZONTAL || config->hide_edge_borders == E_BOTH) { if (config->hide_edge_borders == E_VERTICAL || config->hide_edge_borders == E_BOTH) {
if (geometry.origin.x == workspace->x) { if (geometry.origin.x == workspace->x) {
border_left = 0; border_left = 0;
} }
@ -585,7 +585,7 @@ void update_geometry(swayc_t *container) {
} }
} }
if (config->hide_edge_borders == E_VERTICAL || config->hide_edge_borders == E_BOTH) { if (config->hide_edge_borders == E_HORIZONTAL || config->hide_edge_borders == E_BOTH) {
if (geometry.origin.y == workspace->y || should_hide_top_border(container, geometry.origin.y)) { if (geometry.origin.y == workspace->y || should_hide_top_border(container, geometry.origin.y)) {
border_top = 0; border_top = 0;
} }

Loading…
Cancel
Save