mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
window: Make sure not to respond to input events on OR windows
This can happen since we select for events on the root window, and clients themselves might not select for input, meaning the X server will bubble up. Just do nothing and ignore the event in this case. This should hopefully fix some of the Window manager warning: Log level 8: meta_window_raise: assertion '!window->override_redirect' failed Window manager warning: Log level 8: meta_window_focus: assertion '!window->override_redirect' failed spam that people have been seeing.
This commit is contained in:
parent
048f035d30
commit
53425fa721
@ -7784,6 +7784,15 @@ meta_window_handle_ungrabbed_event (MetaWindow *window,
|
||||
if (display->grab_op != META_GRAB_OP_NONE)
|
||||
return FALSE;
|
||||
|
||||
/* Some windows might not ask for input, in which case we might be here
|
||||
* because we selected for ButtonPress on the root window. In that case,
|
||||
* we have to take special care not to act for an override-redirect window.
|
||||
*
|
||||
* Consume the event in this case, though, since we don't want it passed
|
||||
* to the compositor or UI. */
|
||||
if (window->override_redirect)
|
||||
return TRUE;
|
||||
|
||||
/* We have three passive button grabs:
|
||||
* - on any button, without modifiers => focuses and maybe raises the window
|
||||
* - on resize button, with modifiers => start an interactive resizing
|
||||
|
Loading…
Reference in New Issue
Block a user