Skip to content

Commit

Permalink
Added @lithium-snepo’s workaround for missing titlebar buttons after …
Browse files Browse the repository at this point in the history
…coming back from borderless (cinder#709)
  • Loading branch information
richardeakin committed Mar 6, 2015
1 parent f02e941 commit 8c9bc3e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cinder/app/cocoa/AppImplMac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,13 @@ - (void)setBorderless:(BOOL)borderless
[mWin makeKeyWindow];
[mWin makeMainWindow];
[mWin setHasShadow:( ! mBorderless )];

// kludge: the titlebar buttons don't want to re-appear after coming back from borderless mode unless we resize the window.
if( ! mBorderless && mResizable ) {
ivec2 currentSize = mSize;
[self setSize:currentSize + ivec2( 0, 1 )];
[self setSize:currentSize];
}
}

- (bool)isAlwaysOnTop
Expand Down

0 comments on commit 8c9bc3e

Please sign in to comment.