summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/display.c b/src/display.c
index 4730b0a..fa57f03 100644
--- a/src/display.c
+++ b/src/display.c
@@ -1909,7 +1909,8 @@ event_callback (XEvent *event,
if (window)
{
if (display->grab_op != META_GRAB_OP_NONE &&
- display->grab_window == window)
+ display->grab_window == window &&
+ ((window->frame == NULL) || !window->frame->mapped))
meta_display_end_grab_op (display, CurrentTime);
if (!frame_was_receiver)