From 710b996818b1b3e26b4415f258abd07b78760024 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 17 Dec 2012 09:19:55 +0000 Subject: [PATCH] Add code to limit resize not go below minimum resolution. Signed-off-by: Christopher Michael SVN revision: 81090 --- src/modules/conf_randr/e_smart_monitor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 */