Merge pull request #2970 from RyanDwyer/fix-scratchpad-size

Fix containers not being resized when entering scratchpad
This commit is contained in:
emersion 2018-10-25 10:13:32 +02:00 committed by GitHub
commit df64cb2827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {