diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-22 03:47:32 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-01-22 13:13:34 +0100 |
commit | 8ce57f0a77f50315c83bae305e78091cc40175c2 (patch) | |
tree | 1d279b36e7c3a16defd1e3ec4be2335f0eb0982f /sway/tree | |
parent | de9a357de84da4436b263ff6a969eb4ac753af0d (diff) | |
download | sway-8ce57f0a77f50315c83bae305e78091cc40175c2.tar.xz |
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')
-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) { if (!sway_assert(con->scratchpad, "Container is not in scratchpad")) { return; } - if (!con->workspace) { - root_scratchpad_show(con); - } con->scratchpad = false; int index = list_find(root->scratchpad, con); if (index != -1) { @@ -133,10 +130,6 @@ void root_scratchpad_show(struct sway_container *con) { arrange_workspace(new_ws); seat_set_focus(seat, seat_get_focus_inactive(seat, &con->node)); - - if (new_ws != old_ws) { - ipc_event_window(con, "move"); - } } void root_scratchpad_hide(struct sway_container *con) { |