winemac: Make the window's contentView its firstResponder again after changing its style.
This commit is contained in:
parent
eef81f5ecc
commit
06f80d6542
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue