scratchpad_move: un-fullscreen correct container

Fixes https://github.com/i3/i3/issues/2857#issuecomment-496264445
This commit is contained in:
Orestis Floros
2019-10-17 18:14:21 +03:00
parent 879fd6c08b
commit 95d4ce3ed6
2 changed files with 36 additions and 11 deletions

View File

@ -40,9 +40,7 @@ void scratchpad_move(Con *con) {
/* If the current con is in fullscreen mode, we need to disable that,
* as a scratchpad window should never be in fullscreen mode */
if (focused && focused->type != CT_WORKSPACE && focused->fullscreen_mode != CF_NONE) {
con_toggle_fullscreen(focused, CF_OUTPUT);
}
con_disable_fullscreen(con);
/* 1: Ensure the window or any parent is floating. From now on, we deal
* with the CT_FLOATING_CON. We use automatic == false because the user