winemac: Discard old frame changed events when setting frame for off-screen windows, too.

This commit is contained in:
Ken Thomases 2013-02-17 19:28:16 -06:00 committed by Alexandre Julliard
parent 8fa295ed87
commit 47352930d8
1 changed files with 8 additions and 0 deletions

View File

@ -445,6 +445,14 @@ - (BOOL) setFrameIfOnScreen:(NSRect)contentRect
event. The back end will ignore it if nothing actually changed. */
[self windowDidResize:nil];
}
else
{
/* The back end is establishing a new window size and position. It's
not interested in any stale events regarding those that may be sitting
in the queue. */
[queue discardEventsMatchingMask:event_mask_for_type(WINDOW_FRAME_CHANGED)
forWindow:self];
}
return on_screen;
}