Commit 58b39233 authored by Jasper St. Pierre's avatar Jasper St. Pierre

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.
parent 82066e02
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment