mirror of
https://github.com/swaywm/sway.git
synced 2026-03-01 01:40:32 -05:00
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:
parent
ff7d979d99
commit
7baa3ffece
2 changed files with 14 additions and 10 deletions
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue