Commit 949b4349 authored by Emmanuel Puig's avatar Emmanuel Puig

* Fixed mouse leave notification

parent fe8a8c1b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_window.cpp: GTK2 implementation of the Window class * gtk2_window.cpp: GTK2 implementation of the Window class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_window.cpp,v 1.12 2003/04/15 16:47:20 karibu Exp $ * $Id: gtk2_window.cpp,v 1.13 2003/04/15 16:49:45 karibu Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -170,6 +170,7 @@ bool GTK2Window::ProcessOSEvent( Event *evt ) ...@@ -170,6 +170,7 @@ bool GTK2Window::ProcessOSEvent( Event *evt )
case GDK_MOTION_NOTIFY: case GDK_MOTION_NOTIFY:
fpprintf( stderr, "Mouse move (%i)", (int)evt );
if( LButtonDown ) if( LButtonDown )
MouseMove( (int)( (GdkEventButton *)p2 )->x, MouseMove( (int)( (GdkEventButton *)p2 )->x,
(int)( (GdkEventButton *)p2 )->y, 1 ); (int)( (GdkEventButton *)p2 )->y, 1 );
...@@ -228,7 +229,7 @@ bool GTK2Window::ProcessOSEvent( Event *evt ) ...@@ -228,7 +229,7 @@ bool GTK2Window::ProcessOSEvent( Event *evt )
return true; return true;
case GDK_LEAVE_NOTIFY: case GDK_LEAVE_NOTIFY:
OSAPI_PostMessage( this, WINDOW_LEAVE, -1, -1 ); OSAPI_PostMessage( this, WINDOW_LEAVE, 0, 0 );
return true; return true;
/* /*
case WM_RBUTTONDOWN: case WM_RBUTTONDOWN:
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_window.cpp: Win32 implementation of the Window class * win32_window.cpp: Win32 implementation of the Window class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_window.cpp,v 1.5 2003/04/15 16:47:20 karibu Exp $ * $Id: win32_window.cpp,v 1.6 2003/04/15 16:49:45 karibu Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -198,7 +198,7 @@ bool Win32Window::ProcessOSEvent( Event *evt ) ...@@ -198,7 +198,7 @@ bool Win32Window::ProcessOSEvent( Event *evt )
return true; return true;
case WM_MOUSELEAVE: case WM_MOUSELEAVE:
OSAPI_PostMessage( this, WINDOW_LEAVE, -1, -1 ); OSAPI_PostMessage( this, WINDOW_LEAVE, 0, 0 );
return true; return true;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment