winemac: Make the window's contentView its firstResponder again after changing its style.

This commit is contained in:
Ken Thomases 2014-03-10 18:23:17 -05:00 committed by Alexandre Julliard
parent eef81f5ecc
commit 06f80d6542
1 changed files with 6 additions and 0 deletions

View File

@ -713,6 +713,12 @@ - (void) setWindowFeatures:(const struct macdrv_window_features*)wf
[self setStyleMask:newStyle ^ NSClosableWindowMask];
}
[self setStyleMask:newStyle];
// -setStyleMask: resets the firstResponder to the window. Set it
// back to the content view.
if ([[self contentView] acceptsFirstResponder])
[self makeFirstResponder:[self contentView]];
[self adjustFullScreenBehavior:[self collectionBehavior]];
if ([[self title] length] == 0 && [title length] > 0)