mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
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:
parent
82066e02c5
commit
58b39233f5
@ -1604,7 +1604,7 @@ get_window_for_event (MetaDisplay *display,
|
|||||||
{
|
{
|
||||||
ClutterActor *source;
|
ClutterActor *source;
|
||||||
|
|
||||||
if (display->grab_window)
|
if (display->grab_op != META_GRAB_OP_NONE)
|
||||||
return display->grab_window;
|
return display->grab_window;
|
||||||
|
|
||||||
source = clutter_event_get_source (event);
|
source = clutter_event_get_source (event);
|
||||||
|
Loading…
Reference in New Issue
Block a user