Skip to content

Commit

Permalink
fixes #2801: F11 enters fullscreen, but does not exit (should behave …
Browse files Browse the repository at this point in the history
…as toggle)
  • Loading branch information
wwmayer committed Dec 18, 2016
1 parent 8391af9 commit 723cb4f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/Gui/CommandView.cpp
Expand Up @@ -1460,17 +1460,21 @@ void StdViewDockUndockFullscreen::activated(int iMsg)
{
MDIView* view = getMainWindow()->activeWindow();
if (!view) return; // no active view
if (iMsg == (int)(view->currentViewMode()))
return; // nothing to do

if (iMsg==0) {
view->setCurrentViewMode( MDIView::Child );
view->setCurrentViewMode(MDIView::Child);
}
else if (iMsg==1) {
view->setCurrentViewMode( MDIView::TopLevel );
if (view->currentViewMode() == MDIView::TopLevel)
view->setCurrentViewMode(MDIView::Child);
else
view->setCurrentViewMode(MDIView::TopLevel);
}
else if (iMsg==2) {
view->setCurrentViewMode( MDIView::FullScreen );
if (view->currentViewMode() == MDIView::FullScreen)
view->setCurrentViewMode(MDIView::Child);
else
view->setCurrentViewMode(MDIView::FullScreen);
}
}

Expand Down

0 comments on commit 723cb4f

Please sign in to comment.