From 0d03652c8439e71e2da36ae82330b4df8c48550e Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 15 Oct 2013 10:18:20 +0100 Subject: [PATCH] Improve monitor resize/mouse interaction (hopefully). Signed-off-by: Chris Michael --- src/modules/conf_randr/e_smart_monitor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index 360c4bdde..28dda0aba 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -2177,6 +2177,12 @@ _e_smart_monitor_resize_event(E_Smart_Data *sd, Evas_Object *mon, void *event) (e_config->drag_resist * e_config->drag_resist)) return; + if ((ev->cur.output.x > (sd->x + sd->w + (RESIZE_FUZZ / 2))) || + (ev->cur.output.x < sd->x)) return; + + if ((ev->cur.output.y > (sd->y + sd->h + (RESIZE_FUZZ / 2))) || + (ev->cur.output.y < sd->y)) return; + dx = (ev->cur.canvas.x - ev->prev.canvas.x); dy = (ev->cur.canvas.y - ev->prev.canvas.y);