Permalink
Browse files

Fixed: fullscreen on Mac

  • Loading branch information...
1 parent 373ed73 commit f8f26ea226242de2f403cc2058aeb26f95c1ba27 @Mezomish committed Apr 25, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/app/ui/JuffMW.cpp
View
@@ -429,9 +429,9 @@ bool JuffMW::isFullScreen() const {
}
void JuffMW::toggleFullscreen() {
- setWindowState(windowState() ^ Qt::WindowFullScreen);
-
- if ( isFullScreen() ) {
+ if ( !isFullScreen() ) {
+ setUnifiedTitleAndToolBarOnMac( false );
+ showFullScreen();
// if ( MainSettings::get(MainSettings::FSHideMenubar) )
// menuBar()->hide();
if ( MainSettings::get(MainSettings::FSHideStatusbar) )
@@ -448,6 +448,8 @@ void JuffMW::toggleFullscreen() {
MainSettings::set(MainSettings::FullScreen, true);
}
else {
+ setUnifiedTitleAndToolBarOnMac( true );
+ showNormal();
// menuBar()->show();
statusBar()->show();

0 comments on commit f8f26ea

Please sign in to comment.