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:
Sebastian Ullrich
2012-09-24 21:14:40 +02:00
committed by Michael Stapelberg
parent 7f0065e1b1
commit 49979c9d15
5 changed files with 46 additions and 5 deletions

View File

@ -569,6 +569,8 @@ struct Con {
/** callbacks */
void(*on_remove_child)(Con *);
/** not a scratchpad window, auto centered scratchpad window, or
* user positioned scratchpad window. */
enum {
SCRATCHPAD_NONE = 0,
SCRATCHPAD_FRESH = 1,