aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2012-12-17 09:19:52 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-12-17 09:19:52 +0000
commitd603306b70eed99b55064becd5c1656d6346cc88 (patch)
tree2d0a909ae0e41a54b5c53810b31bbd5b00240fcc
parent45c77f4f64ed21862ab5079d292cd80d94da0110 (diff)
downloadenlightenment-d603306b70eed99b55064becd5c1656d6346cc88.tar.gz
enlightenment-d603306b70eed99b55064becd5c1656d6346cc88.tar.xz
enlightenment-d603306b70eed99b55064becd5c1656d6346cc88.zip
Add code to limit resize to the maximum resolution.
Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 81089
-rw-r--r--src/modules/conf_randr/e_smart_monitor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c
index c21eed525..8bb3cd5e1 100644
--- a/src/modules/conf_randr/e_smart_monitor.c
+++ b/src/modules/conf_randr/e_smart_monitor.c
@@ -839,6 +839,9 @@ _e_smart_monitor_resize_event(E_Smart_Data *sd, Evas_Object *mon, void *event)
e_layout_coord_canvas_to_virtual(sd->layout.obj,
(mw + dx), (mh + dy), &nw, &nh);
+ /* max sure we cannot resize beyond the max */
+ if ((nw > sd->max.w) || (nh > sd->max.h)) return;
+
/* actually resize the monitor */
e_layout_child_resize(mon, nw, nh);
}