summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/window.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 523e7519..0bd9998c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);
}