bugfix: Resize and center a scratchpad even when a criteria is used.

This commit is contained in:
Franck Michea
2013-07-10 22:18:18 +02:00
committed by Michael Stapelberg
parent 023594909e
commit 1f8a860744
2 changed files with 22 additions and 0 deletions

View File

@ -175,6 +175,10 @@ void scratchpad_show(Con *con) {
LOG("Use 'move scratchpad' to move a window to the scratchpad.\n");
return;
}
} else {
/* We used a criterion, so we need to do what follows (moving,
* resizing) on the floating parent. */
con = con_inside_floating(con);
}
/* 1: Move the window from __i3_scratch to the current workspace. */