diff options
Diffstat (limited to 'sway/tree/root.c')
-rw-r--r-- | sway/tree/root.c | 7 |
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 | ||
142 | void root_scratchpad_hide(struct sway_container *con) { | 135 | void root_scratchpad_hide(struct sway_container *con) { |