diff options
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/window.c b/src/window.c index 8105dca..0936999 100644 --- a/src/window.c +++ b/src/window.c @@ -64,7 +64,7 @@ update_window_gravity (rp_window *win) /* { */ if (win->transient) win->gravity = defaults.trans_gravity; - else if (win->hints->flags & PMaxSize) + else if (win->hints->flags & PMaxSize || win->hints->flags & PAspect) win->gravity = defaults.maxsize_gravity; else win->gravity = defaults.win_gravity; @@ -650,14 +650,7 @@ set_active_window_body (rp_window *win, int force) /* The other windows in the frame will be hidden if this window doesn't qualify as a transient window (ie dialog box. */ -#ifdef MAXSIZE_WINDOWS_ARE_TRANSIENTS - if (!win->transient - && !(win->hints->flags & PMaxSize - && (win->hints->max_width < win->scr->width - || win->hints->max_height < win->scr->height))) -#else - if (!win->transient) -#endif + if (!window_is_transient (win)) hide_others(win); /* Make sure the program bar is always on the top */ |