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.
This commit is contained in:
Jasper St. Pierre 2013-12-05 17:14:48 -05:00
parent 82066e02c5
commit 58b39233f5

View File

@ -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);