From 7baa3ffece882cc1fa1b5281dcf85575a429e820 Mon Sep 17 00:00:00 2001 From: lbonn Date: Tue, 20 Aug 2019 00:01:17 +0200 Subject: 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. --- sway/tree/container.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sway/tree') 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")) { -- cgit v1.2.3