- 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 );