if libvlc users disable both mouse and keyboard events, chances are they're
trying to regain control over them. The WS_DISABLED flag exactly fits this need.
The only thing is that it is an overall flag that doesn't differentiate mouse and keyboard.
{
i_style = WS_VISIBLE|WS_CLIPCHILDREN|WS_CHILD;
i_stylex = 0;
+
+ /* allow user to regain control over input events if requested */
+ bool b_mouse_support = var_InheritBool( vd, "mouse-events" );
+ bool b_key_support = var_InheritBool( vd, "keyboard-events" );
+ if( !b_mouse_support && !b_key_support )
+ i_style |= WS_DISABLED;
}
p_event->i_window_style = i_style;