aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-30 21:24:13 +1000
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-05-01 07:46:57 -0400
commit630ba30e3c60cfe3f1018b4a1701f0c2a0f6da9a (patch)
treeda0aa984dd39f3501c4d9facd5c6a2f340ab2da4 /sway/commands.c
parentMerge pull request #1876 from RyanDwyer/view-unmap-segfault (diff)
downloadsway-630ba30e3c60cfe3f1018b4a1701f0c2a0f6da9a.tar.gz
sway-630ba30e3c60cfe3f1018b4a1701f0c2a0f6da9a.tar.zst
sway-630ba30e3c60cfe3f1018b4a1701f0c2a0f6da9a.zip
Implement borders
Implements rendering of borders. Title text is still to do. Implements the following configuration directives: * client.focused * client.focused_inactive * client.unfocused * client.urgent * border * default_border
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c
index a67bc127..575859c9 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -97,8 +97,13 @@ static struct cmd_handler handlers[] = {
97 { "bar", cmd_bar }, 97 { "bar", cmd_bar },
98 { "bindcode", cmd_bindcode }, 98 { "bindcode", cmd_bindcode },
99 { "bindsym", cmd_bindsym }, 99 { "bindsym", cmd_bindsym },
100 { "client.focused", cmd_client_focused },
101 { "client.focused_inactive", cmd_client_focused_inactive },
102 { "client.unfocused", cmd_client_unfocused },
103 { "client.urgent", cmd_client_urgent },
100 { "exec", cmd_exec }, 104 { "exec", cmd_exec },
101 { "exec_always", cmd_exec_always }, 105 { "exec_always", cmd_exec_always },
106 { "default_border", cmd_default_border },
102 { "focus_follows_mouse", cmd_focus_follows_mouse }, 107 { "focus_follows_mouse", cmd_focus_follows_mouse },
103 { "for_window", cmd_for_window }, 108 { "for_window", cmd_for_window },
104 { "fullscreen", cmd_fullscreen }, 109 { "fullscreen", cmd_fullscreen },
@@ -162,6 +167,7 @@ static struct cmd_handler config_handlers[] = {
162 167
163/* Runtime-only commands. Keep alphabetized */ 168/* Runtime-only commands. Keep alphabetized */
164static struct cmd_handler command_handlers[] = { 169static struct cmd_handler command_handlers[] = {
170 { "border", cmd_border },
165 { "exit", cmd_exit }, 171 { "exit", cmd_exit },
166 { "focus", cmd_focus }, 172 { "focus", cmd_focus },
167 { "kill", cmd_kill }, 173 { "kill", cmd_kill },