devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0d03652c8439e71e2da36ae82330b4df8c48550e

commit 0d03652c8439e71e2da36ae82330b4df8c48550e
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Oct 15 10:18:20 2013 +0100

    Improve monitor resize/mouse interaction (hopefully).
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 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 360c4bd..28dda0a 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);
 

-- 


Reply via email to