mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
Fix containers not being resized when entering scratchpad
This fixes a regression introduced by
662466e8db
. When adding a container to the
scratchpad, setting container->scratchpad = true before
container_set_floating made container_set_floating believe that the
container was already floating. This fixes it by setting the property
afterwards instead.
This commit is contained in:
parent
41f744c224
commit
f7aed5c7e5
@ -59,13 +59,13 @@ void root_scratchpad_add_container(struct sway_container *con) {
|
||||
if (!sway_assert(!con->scratchpad, "Container is already in scratchpad")) {
|
||||
return;
|
||||
}
|
||||
con->scratchpad = true;
|
||||
list_add(root->scratchpad, con);
|
||||
|
||||
struct sway_container *parent = con->parent;
|
||||
struct sway_workspace *workspace = con->workspace;
|
||||
container_set_floating(con, true);
|
||||
container_detach(con);
|
||||
con->scratchpad = true;
|
||||
list_add(root->scratchpad, con);
|
||||
|
||||
struct sway_seat *seat = input_manager_current_seat();
|
||||
if (parent) {
|
||||
|
Loading…
Reference in New Issue
Block a user