From 58b39233f5164d49e58a6fc6efc6f0fd8569262a Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 5 Dec 2013 17:14:48 -0500 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/display.c b/src/core/display.c index 8959aa0e3..5f9a53638 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);