Allow moving a container hidden in scratchpad

(as i3 allows it)

Just update the container's coordinates so that they will be applied at
the next show.
This commit is contained in:
lbonn 2019-08-20 00:01:17 +02:00 committed by Brian Ashworth
parent ff7d979d99
commit 7baa3ffece
2 changed files with 14 additions and 10 deletions

View file

@ -880,6 +880,9 @@ void container_floating_move_to(struct sway_container *con,
return;
}
container_floating_translate(con, lx - con->x, ly - con->y);
if (container_is_scratchpad_hidden(con)) {
return;
}
struct sway_workspace *old_workspace = con->workspace;
struct sway_output *new_output = container_floating_find_output(con);
if (!sway_assert(new_output, "Unable to find any output")) {