discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ea0a3d304ae60b7dba874f0bf2b2d6035aed9aeb

commit ea0a3d304ae60b7dba874f0bf2b2d6035aed9aeb
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Apr 21 16:14:57 2017 -0400

    elm_win: do not require mouse buttons to be pressed to activate csd 
move/resize
    
    the api function requires this, but the unified handler for api+edje 
handler does
    not, since edje singals are deferred and the button which triggered the move
    may be released before the signal is processed
    
    ref ea7bbfe47dc1df5f51725be05eadf7ebce1d8361
    @fix
---
 src/lib/elementary/efl_ui_win.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index eff2fd2..0d9907e 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -3924,13 +3924,6 @@ _win_move_resize_start(Efl_Ui_Win_Data *sd, 
Efl_Ui_Win_Move_Resize_Mode mode)
    EINA_SAFETY_ON_NULL_RETURN_VAL(sd, EINA_FALSE);
    const resize_info *ri;
 
-   // 1. move_resize can only be started after mouse down event
-   if (evas_event_down_count_get(sd->evas) <= 0)
-     {
-        ERR("move_resize_start can only be called when a pointer is pressed.");
-        return EINA_FALSE;
-     }
-
    // 2. check move_resize already started
    if (sd->resizing)
      {
@@ -6819,6 +6812,12 @@ ELM_PART_IMPLEMENT_CONTENT_UNSET(efl_ui_win, EFL_UI_WIN, 
Efl_Ui_Win_Data, Elm_Pa
 EOLIAN static Eina_Bool
 _efl_ui_win_move_resize_start(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, 
Efl_Ui_Win_Move_Resize_Mode mode)
 {
+   // 1. move_resize can only be started after mouse down event
+   if (evas_event_down_count_get(sd->evas) <= 0)
+     {
+        ERR("move_resize_start can only be called when a pointer is pressed.");
+        return EINA_FALSE;
+     }
    return _win_move_resize_start(sd, mode);
 }
 

-- 


Reply via email to