aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2012-12-17 09:19:55 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-12-17 09:19:55 +0000
commit710b996818b1b3e26b4415f258abd07b78760024 (patch)
tree626d6e877d9f5750944a7f351a3231f2c9b78b62
parentd603306b70eed99b55064becd5c1656d6346cc88 (diff)
downloadenlightenment-710b996818b1b3e26b4415f258abd07b78760024.tar.gz
enlightenment-710b996818b1b3e26b4415f258abd07b78760024.tar.xz
enlightenment-710b996818b1b3e26b4415f258abd07b78760024.zip
Add code to limit resize not go below minimum resolution.
Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 81090
-rw-r--r--src/modules/conf_randr/e_smart_monitor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c
index 8bb3cd5e1..91896c378 100644
--- a/src/modules/conf_randr/e_smart_monitor.c
+++ b/src/modules/conf_randr/e_smart_monitor.c
@@ -839,7 +839,10 @@ _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 */
+ /* make sure we cannot resize below the min */
+ if ((nw < sd->min.w) || (nh < sd->min.h)) return;
+
+ /* make sure we cannot resize beyond the max */
if ((nw > sd->max.w) || (nh > sd->max.h)) return;
/* actually resize the monitor */