diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/window.c | 4 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2005-01-23 Elijah Newren <newren@gmail.com> + + Patch from John Paul Wallington to fix #163420. + + * src/window.c: (check_maximize_to_work_area): fix vertical + maximization for second screen + 2005-01-21 Elijah Newren <newren@gmail.com> * rationales.txt: Add a tracker bug for modal dialog issues diff --git a/src/window.c b/src/window.c index c410a2d2..4830d654 100644 --- a/src/window.c +++ b/src/window.c @@ -2895,9 +2895,9 @@ check_maximize_to_work_area (MetaWindow *window, if ( rect.x >= work_area->x && rect.y >= work_area->y && - (((work_area->width - work_area->x) - rect.width) < + (((work_area->width + work_area->x) - (rect.width + rect.x)) < window->size_hints.width_inc) && - (((work_area->height - work_area->y) - rect.height) < + (((work_area->height + work_area->y) - (rect.height + rect.y)) < window->size_hints.height_inc) ) meta_window_maximize (window); } |