Wow, Thanks for all of your responses!
I have thought only Mr. Vincent (default Raster) is interested in EFL on
Windows.

@Mrs. Youness Alaoui and Sebastian Dransfeld
I referred to _ecore_mouse_move(); in xlib/ecore_x_events.c.
So I thought the free(ev); is necessary one. Anyhow, I see your point and I
have refined the patch and attached.

@Mr. Vincent
I checked the resizing window also.
Previously, SetCapture();/ReleaseCapture(); are used in
WM_NCLBUTTONDONW/WM_LBUTTONUP case
for the resizing (dragging). So I added the SetCpture(); to the
WM_LBUTTONDOWN and move the location of ReleaseCapture(); to the first lie
of the WM_LBUTTONUP case.


Sincerely,
Shinwoo Kim.


2011/11/17 Sebastian Dransfeld <s...@tango.flipp.net>

> On 11/16/2011 01:43 PM, cnook wrote:
> > Dear All,  Hello~
> >
> > I think you (especially Mr. Vincent, Raster) know this issue.
> >
> > If user mouse-down on the one of items in elementary_test,
> > move(drag) the mouse to the outside of window, and mouse-up,
> >
> > Then.. it works improperly.. For example..
> > You can scroll the list of elementary_test without mouse-down.
>
> Isn't free(ev) the default event free function?
>
> No need for _ecore_win32_event_free_mouse_move then.
>
> S.
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
Index: src/lib/ecore_win32/ecore_win32.c
===================================================================
--- src/lib/ecore_win32/ecore_win32.c	(revision 65287)
+++ src/lib/ecore_win32/ecore_win32.c	(working copy)
@@ -107,6 +107,7 @@
        /* Mouse input notifications */
      case WM_LBUTTONDOWN:
        INF("left button down message");
+       SetCapture(window);
        _ecore_win32_event_handle_button_press(data, 1);
        return 0;
      case WM_MBUTTONDOWN:
@@ -119,6 +120,7 @@
        return 0;
      case WM_LBUTTONUP:
        {
+          ReleaseCapture();
           Ecore_Win32_Window *w = NULL;
 
           INF("left button up message");
@@ -126,7 +128,6 @@
           w = (Ecore_Win32_Window *)GetWindowLongPtr(window, GWLP_USERDATA);
           if (w->drag.dragging)
             {
-               ReleaseCapture();
                w->drag.dragging = 0;
                return 0;
             }
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to