From 6455935abb7722bffb0dd80aca0aedf0c24fbbb4 Mon Sep 17 00:00:00 2001 From: Erwan Tulou Date: Tue, 15 Dec 2009 17:59:33 +0100 Subject: [PATCH] skins2(Linux): reactivate mouse on a video window (like dblclick for fullscreen) --- modules/gui/skins2/x11/x11_window.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/modules/gui/skins2/x11/x11_window.cpp b/modules/gui/skins2/x11/x11_window.cpp index 50be1e8031..41c7544ce4 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() ); -- 2.39.5