aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/root.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-01-22 03:47:32 -0500
committerLibravatar emersion <contact@emersion.fr>2019-01-22 13:13:34 +0100
commit8ce57f0a77f50315c83bae305e78091cc40175c2 (patch)
tree1d279b36e7c3a16defd1e3ec4be2335f0eb0982f /sway/tree/root.c
parentutil.c: remove numlen function (diff)
downloadsway-8ce57f0a77f50315c83bae305e78091cc40175c2.tar.gz
sway-8ce57f0a77f50315c83bae305e78091cc40175c2.tar.zst
sway-8ce57f0a77f50315c83bae305e78091cc40175c2.zip
root_scratchpad_remove_container: do not show
This removes the call to `root_scratchpad_show` from `root_scratchpad_remove_container` and places it in the `cmd_move_container`. This also moved the IPC `window::move` event to `cmd_scratchpad`.
Diffstat (limited to 'sway/tree/root.c')
-rw-r--r--sway/tree/root.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sway/tree/root.c b/sway/tree/root.c
index ec6bccf6..c4d1145d 100644
--- a/sway/tree/root.c
+++ b/sway/tree/root.c
@@ -85,9 +85,6 @@ void root_scratchpad_remove_container(struct sway_container *con) {
85 if (!sway_assert(con->scratchpad, "Container is not in scratchpad")) { 85 if (!sway_assert(con->scratchpad, "Container is not in scratchpad")) {
86 return; 86 return;
87 } 87 }
88 if (!con->workspace) {
89 root_scratchpad_show(con);
90 }
91 con->scratchpad = false; 88 con->scratchpad = false;
92 int index = list_find(root->scratchpad, con); 89 int index = list_find(root->scratchpad, con);
93 if (index != -1) { 90 if (index != -1) {
@@ -133,10 +130,6 @@ void root_scratchpad_show(struct sway_container *con) {
133 130
134 arrange_workspace(new_ws); 131 arrange_workspace(new_ws);
135 seat_set_focus(seat, seat_get_focus_inactive(seat, &con->node)); 132 seat_set_focus(seat, seat_get_focus_inactive(seat, &con->node));
136
137 if (new_ws != old_ws) {
138 ipc_event_window(con, "move");
139 }
140} 133}
141 134
142void root_scratchpad_hide(struct sway_container *con) { 135void root_scratchpad_hide(struct sway_container *con) {