summaryrefslogtreecommitdiff
path: root/gdk/gdkevents.c
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2013-11-11 18:17:38 -0500
committerOwen W. Taylor <otaylor@fishsoup.net>2013-11-11 18:20:09 -0500
commitfbfeb00545680019c66c71a211ead8def73bf98e (patch)
tree056bda49f1900b68cdf0424355ec2c8032a35eb4 /gdk/gdkevents.c
parentaaecf7d82680acc3030984968d723ea1a61e7589 (diff)
downloadgtk+-fbfeb00545680019c66c71a211ead8def73bf98e.tar.gz
Fix warning with event compression on a destroyed window
Fix a critical message when we try to compress events for a window that was already destroyed.
Diffstat (limited to 'gdk/gdkevents.c')
-rw-r--r--gdk/gdkevents.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 6d926aef2c..83c313cd34 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -316,7 +316,8 @@ _gdk_event_queue_handle_motion_compression (GdkDisplay *display)
pending_motions == display->queued_tail)
{
GdkFrameClock *clock = gdk_window_get_frame_clock (pending_motion_window);
- gdk_frame_clock_request_phase (clock, GDK_FRAME_CLOCK_PHASE_FLUSH_EVENTS);
+ if (clock) /* might be NULL if window was destroyed */
+ gdk_frame_clock_request_phase (clock, GDK_FRAME_CLOCK_PHASE_FLUSH_EVENTS);
}
}