Commit 7a047af6 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

parent 94746f1d
......@@ -762,7 +762,11 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers)
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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment