]> git.sesse.net Git - vlc/commitdiff
skins2(Linux): reactivate mouse on a video window (like dblclick for fullscreen)
authorErwan Tulou <erwan10@videolan.org>
Tue, 15 Dec 2009 16:59:33 +0000 (17:59 +0100)
committerErwan Tulou <erwan10@videolan.org>
Tue, 15 Dec 2009 17:12:26 +0000 (18:12 +0100)
modules/gui/skins2/x11/x11_window.cpp

index 50be1e8031ba16a8d60aa2182150b17c267647fa..41c7544ce413ac32c0d1e8daa6f90ec1c9d67b05 100644 (file)
@@ -97,9 +97,19 @@ X11Window::X11Window( intf_thread_t *pIntf, GenericWindow &rWindow,
     }
 
     // Select events received by the window
     }
 
     // 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() );
 
     // Store a pointer on the generic window in a map
     X11Factory *pFactory = (X11Factory*)X11Factory::instance( getIntf() );