forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
aaecf7d826
commit
fbfeb00545
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user