aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/conf_randr/e_smart_monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/conf_randr/e_smart_monitor.c')
-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 */