aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorlbonn <bonnans.l@gmail.com>2019-08-20 00:01:17 +0200
committerBrian Ashworth <bosrsf04@gmail.com>2019-08-20 13:09:52 -0400
commit7baa3ffece882cc1fa1b5281dcf85575a429e820 (patch)
tree2fad9e6ba119f4d11e8ccdd906c2abd96f723bd6 /sway/tree
parentff7d979d99ddb087a02fc457953b33e3beb4715b (diff)
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.
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/container.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 6620921f..b89047a7 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -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")) {