]> git.sesse.net Git - vlc/commitdiff
* Fixed mouse leave notification
authorEmmanuel Puig <karibu@videolan.org>
Tue, 15 Apr 2003 16:49:45 +0000 (16:49 +0000)
committerEmmanuel Puig <karibu@videolan.org>
Tue, 15 Apr 2003 16:49:45 +0000 (16:49 +0000)
modules/gui/skins/gtk2/gtk2_window.cpp
modules/gui/skins/win32/win32_window.cpp

index 7991f325536fedd88f9c6f3e2e0d8367d64be0b5..e28bb33f1eade637580d48a87050ce609824bdcb 100644 (file)
@@ -2,7 +2,7 @@
  * gtk2_window.cpp: GTK2 implementation of the Window class
  *****************************************************************************
  * 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>
  *
@@ -170,6 +170,7 @@ bool GTK2Window::ProcessOSEvent( Event *evt )
 
 
         case GDK_MOTION_NOTIFY:
+            fpprintf( stderr, "Mouse move (%i)", (int)evt );
             if( LButtonDown )
                 MouseMove( (int)( (GdkEventButton *)p2 )->x,
                            (int)( (GdkEventButton *)p2 )->y, 1 );
@@ -228,7 +229,7 @@ bool GTK2Window::ProcessOSEvent( Event *evt )
             return true;
 
         case GDK_LEAVE_NOTIFY:
-            OSAPI_PostMessage( this, WINDOW_LEAVE, -1, -1 );
+            OSAPI_PostMessage( this, WINDOW_LEAVE, 0, 0 );
             return true;
 /*
         case WM_RBUTTONDOWN:
index f62a23691f5200dd4d7c678fdfb0db848213a2d1..33dc616ba38b954f34ec2e61566b85a829a361c2 100644 (file)
@@ -2,7 +2,7 @@
  * win32_window.cpp: Win32 implementation of the Window class
  *****************************************************************************
  * 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 Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -198,7 +198,7 @@ bool Win32Window::ProcessOSEvent( Event *evt )
             return true;
 
         case WM_MOUSELEAVE:
-            OSAPI_PostMessage( this, WINDOW_LEAVE, -1, -1 );
+            OSAPI_PostMessage( this, WINDOW_LEAVE, 0, 0 );
             return true;
 
         default: