mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
window: Don't eat events on O-R windows
For XWayland, we need to make sure to send out mouse events on O-R windows, otherwise they won't get motion or button events. The comment mentions being eaten for the compositor, but we already bypass the compositor for all events that have a window. The return value just controls whether we pass them to Wayland.
This commit is contained in:
parent
8d08851f28
commit
02220ed6c7
@ -7786,11 +7786,9 @@ meta_window_handle_ungrabbed_event (MetaWindow *window,
|
|||||||
/* Some windows might not ask for input, in which case we might be here
|
/* 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,
|
* 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.
|
* 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)
|
if (window->override_redirect)
|
||||||
return TRUE;
|
return FALSE;
|
||||||
|
|
||||||
/* We have three passive button grabs:
|
/* We have three passive button grabs:
|
||||||
* - on any button, without modifiers => focuses and maybe raises the window
|
* - on any button, without modifiers => focuses and maybe raises the window
|
||||||
|
Loading…
Reference in New Issue
Block a user