summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-01 22:41:20 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-01 22:41:20 +1000
commit4fa5e2d9db2879b665d6447692017b82ff78e186 (patch)
tree19a4f66de6aeb2842a269c5e0103cb68b3d1f4c7
parentRestore view_update_position() (diff)
parentFix alphabetization of commands array (diff)
downloadsway-4fa5e2d9db2879b665d6447692017b82ff78e186.tar.gz
sway-4fa5e2d9db2879b665d6447692017b82ff78e186.tar.zst
sway-4fa5e2d9db2879b665d6447692017b82ff78e186.zip
Merge branch 'borders' of github:RyanDwyer/sway into borders
-rw-r--r--sway/commands.c2
-rw-r--r--sway/tree/view.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 575859c9..8abfd40b 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -101,9 +101,9 @@ static struct cmd_handler handlers[] = {
101 { "client.focused_inactive", cmd_client_focused_inactive }, 101 { "client.focused_inactive", cmd_client_focused_inactive },
102 { "client.unfocused", cmd_client_unfocused }, 102 { "client.unfocused", cmd_client_unfocused },
103 { "client.urgent", cmd_client_urgent }, 103 { "client.urgent", cmd_client_urgent },
104 { "default_border", cmd_default_border },
104 { "exec", cmd_exec }, 105 { "exec", cmd_exec },
105 { "exec_always", cmd_exec_always }, 106 { "exec_always", cmd_exec_always },
106 { "default_border", cmd_default_border },
107 { "focus_follows_mouse", cmd_focus_follows_mouse }, 107 { "focus_follows_mouse", cmd_focus_follows_mouse },
108 { "for_window", cmd_for_window }, 108 { "for_window", cmd_for_window },
109 { "fullscreen", cmd_fullscreen }, 109 { "fullscreen", cmd_fullscreen },
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 80949c89..05a9b277 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -346,7 +346,11 @@ void view_unmap(struct sway_view *view) {
346 view->swayc = NULL; 346 view->swayc = NULL;
347 view->surface = NULL; 347 view->surface = NULL;
348 348
349 arrange_children_of(parent); 349 if (parent->type == C_OUTPUT) {
350 arrange_output(parent);
351 } else {
352 arrange_children_of(parent);
353 }
350} 354}
351 355
352void view_update_position(struct sway_view *view, double ox, double oy) { 356void view_update_position(struct sway_view *view, double ox, double oy) {