summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Adams <robadams@ucla.edu>2003-08-21 04:27:11 +0000
committerRob Adams <readams@src.gnome.org>2003-08-21 04:27:11 +0000
commita644753073d75ed32ec11b34f37615ee0c36ccc1 (patch)
tree89acf4b36667ae280c230935928eca1430d3546e
parent23b5ea0eeed62d302ed92f21782156dbbe0710d4 (diff)
downloadmetacity-a644753073d75ed32ec11b34f37615ee0c36ccc1.tar.gz
do northwest resize when maximizing and fullscreening to avoid potential
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.
-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,