summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/constraints.c12
2 files changed, 12 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 151ef1de..3de68ab6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-20 Rob Adams <robadams@ucla.edu>
+
+ * src/constraints.c (meta_window_constrain): do northwest resize
+ when maximizing and fullscreening to avoid potential "off-by-one"
+ problems.
+
2003-08-19 Rob Adams <robadams@uclu.edu>
* src/stack.c (get_standalone_layer): put windows with
diff --git a/src/constraints.c b/src/constraints.c
index f86e4782..2bb295f1 100644
--- a/src/constraints.c
+++ b/src/constraints.c
@@ -1371,9 +1371,9 @@ meta_window_constrain (MetaWindow *window,
current = *new;
- constrain_resize_hcenter (window, &info, &current,
- (info.xinerama->width - OUTER_WIDTH (current)) / 2,
- new);
+ constrain_resize_right (window, &info, &current,
+ info.xinerama->width - OUTER_WIDTH (current),
+ new);
current = *new;
constrain_move (window, &info, &current,
@@ -1389,9 +1389,9 @@ meta_window_constrain (MetaWindow *window,
current = *new;
- constrain_resize_hcenter (window, &info, &current,
- (info.work_area_xinerama.width - OUTER_WIDTH (current)) / 2,
- new);
+ constrain_resize_right (window, &info, &current,
+ info.work_area_xinerama.width - OUTER_WIDTH (current),
+ new);
current = *new;
constrain_move (window, &info, &current,