aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorFrantisek Fladung <ametisf@gmail.com>2017-01-12 12:11:04 +0100
committerFrantisek Fladung <ametisf@gmail.com>2017-01-12 12:40:28 +0100
commitc04819e8c080e40e1e872c8624c60c4a51087019 (patch)
treeefa11e933930ba845663f62c96d62762286969d4 /sway/commands
parent527c259d063a4d7ca2bfd62b3b877bb70419535b (diff)
downloadsway-c04819e8c080e40e1e872c8624c60c4a51087019.tar.xz
Implement hide_edge_borders smart (like in i3 4.13)
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/hide_edge_borders.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands/hide_edge_borders.c b/sway/commands/hide_edge_borders.c
index 0be940c1..cb4f052d 100644
--- a/sway/commands/hide_edge_borders.c
+++ b/sway/commands/hide_edge_borders.c
@@ -15,6 +15,8 @@ struct cmd_results *cmd_hide_edge_borders(int argc, char **argv) {
config->hide_edge_borders = E_HORIZONTAL;
} else if (strcasecmp(argv[0], "both") == 0) {
config->hide_edge_borders = E_BOTH;
+ } else if (strcasecmp(argv[0], "smart") == 0) {
+ config->hide_edge_borders = E_SMART;
} else {
return cmd_results_new(CMD_INVALID, "hide_edge_borders",
"Expected 'hide_edge_borders <none|vertical|horizontal|both>'");