diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-13 02:34:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-13 02:34:59 +0000 |
| commit | cbaafd2ff9194570686cc242910f81e104ee8c42 (patch) | |
| tree | 7f62e8180ccaf569864b15088f84daf8eca52936 /openbox | |
| parent | 8c05970840ed3a7c7ecc4a63f8f226791b495326 (diff) | |
use all possible struts when maximizing to fill the screen
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c index 71be0f94..1ead992c 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2731,7 +2731,10 @@ void client_try_configure(ObClient *self, gint *x, gint *y, gint *w, gint *h, guint i; i = screen_find_monitor(&desired); - a = screen_area_monitor(self->desktop, i, &desired); + /* use all possible struts when maximizing to the full screen */ + a = screen_area_monitor(self->desktop, i, + (self->max_horz && self->max_vert ? + NULL : &desired)); /* set the size and position if maximized */ if (self->max_horz) { |
