diff options
author | sabetts <sabetts> | 2006-01-05 04:36:07 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2006-01-05 04:36:07 +0000 |
commit | a83f0a57448524b489e94e06e945e1a551543d94 (patch) | |
tree | c8d9ca53c112579aac06720db704ac55f0a94f0b /src/window.c | |
parent | 1d3b753b428842fc9c0bdc6d9ccc9e2289239ffa (diff) | |
download | ratpoison-a83f0a57448524b489e94e06e945e1a551543d94.zip |
* src/conf.h (ASPECT_WINDOWS_ARE_TRANSIENTS): new define
* src/manage.c (window_is_transient): new function
(maximize_normal): honour aspect ratio hint
* src/window.c (update_window_gravity): use maxsize_gravity for windows with aspect hints.
(set_active_window_body): call window_is_transient
* src/split.c (cleanup_frame): call window_is_transient
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 */ |