[vlc-devel] commit: skins2(Linux): reactivate mouse on a video window ( like dblclick for fullscreen) (Erwan Tulou )

git version control git at videolan.org
Tue Dec 15 18:13:40 CET 2009


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Tue Dec 15 17:59:33 2009 +0100| [6455935abb7722bffb0dd80aca0aedf0c24fbbb4] | committer: Erwan Tulou 

skins2(Linux): reactivate mouse on a video window (like dblclick for fullscreen)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6455935abb7722bffb0dd80aca0aedf0c24fbbb4
---

 modules/gui/skins2/x11/x11_window.cpp |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/modules/gui/skins2/x11/x11_window.cpp b/modules/gui/skins2/x11/x11_window.cpp
index 50be1e8..41c7544 100644
--- a/modules/gui/skins2/x11/x11_window.cpp
+++ b/modules/gui/skins2/x11/x11_window.cpp
@@ -97,9 +97,19 @@ X11Window::X11Window( intf_thread_t *pIntf, GenericWindow &rWindow,
     }
 
     // Select events received by the window
-    XSelectInput( XDISPLAY, m_wnd, ExposureMask|KeyPressMask|
-                  PointerMotionMask|ButtonPressMask|ButtonReleaseMask|
-                  LeaveWindowMask|FocusChangeMask );
+    long event_mask;
+    if( type == GenericWindow::VoutWindow )
+    {
+        event_mask =  ExposureMask|KeyPressMask|
+                      LeaveWindowMask|FocusChangeMask;
+    }
+    else
+    {
+        event_mask =  ExposureMask|KeyPressMask|
+                      PointerMotionMask|ButtonPressMask|ButtonReleaseMask|
+                      LeaveWindowMask|FocusChangeMask;
+    }
+    XSelectInput( XDISPLAY, m_wnd, event_mask );
 
     // Store a pointer on the generic window in a map
     X11Factory *pFactory = (X11Factory*)X11Factory::instance( getIntf() );




More information about the vlc-devel mailing list