winemac: In -setFrameIfOnScreen:, don't adjust window levels if fullscreen-ness didn't change.

This commit is contained in:
Ken Thomases 2013-05-16 18:43:40 -05:00 committed by Alexandre Julliard
parent 94746f1d2d
commit 7a047af640
1 changed files with 5 additions and 1 deletions

View File

@ -762,7 +762,11 @@ - (BOOL) setFrameIfOnScreen:(NSRect)contentRect
if (on_screen)
{
[[WineApplicationController sharedController] adjustWindowLevels];
BOOL fullscreen = (screen_covered_by_rect(frame, screens) != nil);
BOOL oldFullscreen = (screen_covered_by_rect(oldFrame, screens) != nil);
if (fullscreen != oldFullscreen)
[[WineApplicationController sharedController] adjustWindowLevels];
/* In case Cocoa adjusted the frame we tried to set, generate a frame-changed
event. The back end will ignore it if nothing actually changed. */