From 06f80d6542222df7c894695b703c2d74c125608d Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Mon, 10 Mar 2014 18:23:17 -0500 Subject: [PATCH] winemac: Make the window's contentView its firstResponder again after changing its style. --- dlls/winemac.drv/cocoa_window.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m index 54cb8db6ec9..7ead126d8f0 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -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)