Always auto center on 'scratchpad show' if window hasn't been repositioned by the user
This change ensures a scratchpad window is still centered on the screen if it has first been shown on another screen of a different resolution. Moving or resizing the scratchpad manually disables this behavior.
This commit is contained in:
committed by
Michael Stapelberg
parent
7f0065e1b1
commit
49979c9d15
@ -178,7 +178,6 @@ void scratchpad_show(Con *con) {
|
||||
((output->rect.width / 2.0) - (con->rect.width / 2.0));
|
||||
con->rect.y = output->rect.y +
|
||||
((output->rect.height / 2.0) - (con->rect.height / 2.0));
|
||||
con->scratchpad_state = SCRATCHPAD_CHANGED;
|
||||
}
|
||||
|
||||
/* Activate active workspace if window is from another workspace to ensure
|
||||
|
Reference in New Issue
Block a user