Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed: fullscreen on Mac

  • Loading branch information...
commit f8f26ea226242de2f403cc2058aeb26f95c1ba27 1 parent 373ed73
@Mezomish authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/app/ui/JuffMW.cpp
View
8 src/app/ui/JuffMW.cpp
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.