winemac: In -setFrameIfOnScreen:, don't adjust window levels if fullscreen-ness didn't change.
This commit is contained in:
parent
94746f1d2d
commit
7a047af640
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue