summaryrefslogtreecommitdiff
path: root/src/core/window.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2022-09-28 14:03:05 +0200
committerMarge Bot <marge-bot@gnome.org>2023-01-30 10:56:29 +0000
commita7b8f061963e756c2838c836e78cb0c60d1e111b (patch)
treed5b106c9f70e6273e324c2c3823700303130184c /src/core/window.c
parenta5bd0c39fefbb340f68d2bb1babcf0694188e49e (diff)
downloadmutter-a7b8f061963e756c2838c836e78cb0c60d1e111b.tar.gz
core: Move grab_op check for handling window events from passive grabs
This piece of event handling only applies on windows receiving events while the display is ungrabbed (i.e. for raising it, or beginning a move/resize operation). Move the checks on the current grab operation outside of window.c and into events.c, so all checks about the current grab operation move closer to the main event handler. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
Diffstat (limited to 'src/core/window.c')
-rw-r--r--src/core/window.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 88ae93a9f..76a6c1a9b 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -8295,9 +8295,6 @@ meta_window_handle_ungrabbed_event (MetaWindow *window,
else
button = clutter_event_get_button (event);
- if (display->grab_op != META_GRAB_OP_NONE)
- return;
-
/* 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.