[mutter/wayland] display: Correct the detection of a grab
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wayland] display: Correct the detection of a grab
- Date: Thu, 5 Dec 2013 22:45:48 +0000 (UTC)
commit 58b39233f5164d49e58a6fc6efc6f0fd8569262a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Dec 5 17:14:48 2013 -0500
display: Correct the detection of a grab
The grab_window might be NULL, in which case we have a full-screen
grab, but we might still in a grab. Correct the check by asking
whether we're in a grab op or not.
src/core/display.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 8959aa0..5f9a536 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1604,7 +1604,7 @@ get_window_for_event (MetaDisplay *display,
{
ClutterActor *source;
- if (display->grab_window)
+ if (display->grab_op != META_GRAB_OP_NONE)
return display->grab_window;
source = clutter_event_get_source (event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]