]> source.dussan.org Git - tigervnc.git/commitdiff
Leaving/entering full screen on OS X would leave the scroll bars in an
authorPierre Ossman <ossman@cendio.se>
Wed, 24 Oct 2012 12:15:19 +0000 (12:15 +0000)
committerPierre Ossman <ossman@cendio.se>
Wed, 24 Oct 2012 12:15:19 +0000 (12:15 +0000)
incorrect state. Turned out it was actually a redraw bug.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5010 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/DesktopWindow.cxx

index 746f3413b905c07eac42c2e66e939f261d899b31..378e43cfef7a38d8afec1255b2e10d3eaab5abe0 100644 (file)
@@ -369,6 +369,11 @@ int DesktopWindow::handle(int event)
     else
       scroll->type(Fl_Scroll::BOTH);
 
+    // The scroll widget isn't clever enough to actually redraw the
+    // scroll bars when they are added/removed, so we need to give
+    // it a push.
+    scroll->redraw();
+
     if (!fullscreenSystemKeys)
       break;