Skip to content

Commit

Permalink
More responsive initial full screen
Browse files Browse the repository at this point in the history
Avoid a needless delay resizing the session.
  • Loading branch information
CendioOssman committed Feb 8, 2025
1 parent afdbbcc commit 52aebd6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vncviewer/DesktopWindow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,14 @@ int DesktopWindow::handle(int event)
else
ungrabKeyboard();

// The window manager respected our full screen request, so stop
// waiting and delaying the session resize
if (delayedFullscreen && fullscreen_active()) {
Fl::remove_timeout(handleFullscreenTimeout, this);
delayedFullscreen = false;
remoteResize();
}

break;

case FL_ENTER:
Expand Down

0 comments on commit 52aebd6

Please sign in to comment.