diff options
author | lbonn <bonnans.l@gmail.com> | 2019-08-20 00:01:17 +0200 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-08-20 13:09:52 -0400 |
commit | 7baa3ffece882cc1fa1b5281dcf85575a429e820 (patch) | |
tree | 2fad9e6ba119f4d11e8ccdd906c2abd96f723bd6 /sway/tree/container.c | |
parent | cmd_xwayland: add force for immediate launch (diff) | |
download | sway-7baa3ffece882cc1fa1b5281dcf85575a429e820.tar.gz sway-7baa3ffece882cc1fa1b5281dcf85575a429e820.tar.zst sway-7baa3ffece882cc1fa1b5281dcf85575a429e820.zip |
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/container.c')
-rw-r--r-- | sway/tree/container.c | 3 |
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, | |||
880 | return; | 880 | return; |
881 | } | 881 | } |
882 | container_floating_translate(con, lx - con->x, ly - con->y); | 882 | container_floating_translate(con, lx - con->x, ly - con->y); |
883 | if (container_is_scratchpad_hidden(con)) { | ||
884 | return; | ||
885 | } | ||
883 | struct sway_workspace *old_workspace = con->workspace; | 886 | struct sway_workspace *old_workspace = con->workspace; |
884 | struct sway_output *new_output = container_floating_find_output(con); | 887 | struct sway_output *new_output = container_floating_find_output(con); |
885 | if (!sway_assert(new_output, "Unable to find any output")) { | 888 | if (!sway_assert(new_output, "Unable to find any output")) { |