From f9750906c03f3dd76d4ebe14f17644f93102a48c Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Sun, 8 Mar 2015 03:03:55 +0100 Subject: [PATCH] Fixing mouse input in fullscreen mode. --- examples/common/entry/entry_osx.mm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/common/entry/entry_osx.mm b/examples/common/entry/entry_osx.mm index 2280d54b..463f9200 100644 --- a/examples/common/entry/entry_osx.mm +++ b/examples/common/entry/entry_osx.mm @@ -362,7 +362,7 @@ namespace entry WindowHandle handle = { 0 }; NSWindow* window = m_window[handle.idx]; NSRect originalFrame = [window frame]; - NSRect rect = [NSWindow contentRectForFrameRect: originalFrame styleMask: m_style]; + NSRect rect = [window contentRectForFrameRect: originalFrame]; uint32_t width = uint32_t(rect.size.width); uint32_t height = uint32_t(rect.size.height); m_eventQueue.postSizeEvent(handle, width, height); @@ -585,10 +585,8 @@ namespace entry if (!s_ctx.m_fullscreen) { [NSMenu setMenuBarVisible: false]; - s_ctx.m_style &= ~NSTitledWindowMask; dispatch_async(dispatch_get_main_queue() , ^{ - [window setStyleMask: s_ctx.m_style]; [window setFrame:screenRect display:YES]; });