mirror of
https://github.com/swaywm/sway.git
synced 2025-11-23 06:59:48 -05:00
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`.
This commit is contained in:
parent
de9a357de8
commit
8ce57f0a77
3 changed files with 5 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue