aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2011-08-01 10:34:38 +0000
committerPeter Åstrand <astrand@cendio.se>2011-08-01 10:34:38 +0000
commit1d03cbcc70e6275a96da1fa7f6afc89a5e8335f9 (patch)
treefe0f65b5c2b42c71a0ab1a0828a8f0d432504457 /vncviewer
parentd8e93dc9da2573e499ae1d086770183df028b490 (diff)
downloadtigervnc-1d03cbcc70e6275a96da1fa7f6afc89a5e8335f9.tar.gz
tigervnc-1d03cbcc70e6275a96da1fa7f6afc89a5e8335f9.zip
More fullscreen fixes: Do not try to change size in fullscreen mode
even if viewport is same as window size. However, after exiting fullscreen mode, the window size needs to be updated. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4610 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/DesktopWindow.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index 102e0b1c..a7373ffc 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -152,19 +152,19 @@ void DesktopWindow::resizeFramebuffer(int new_w, int new_h)
// If we're letting the viewport match the window perfectly, then
// keep things that way for the new size, otherwise just keep things
// like they are.
+#ifdef HAVE_FLTK_FULLSCREEN
+ if (!fullscreen_active()) {
+#endif
if ((w() == viewport->w()) && (h() == viewport->h()))
size(new_w, new_h);
else {
-#ifdef HAVE_FLTK_FULLSCREEN
- if (!fullscreen_active()) {
-#endif
// Make sure the window isn't too big
if ((w() > new_w) || (h() > new_h))
size(__rfbmin(w(), new_w), __rfbmin(h(), new_h));
+ }
#ifdef HAVE_FLTK_FULLSCREEN
- }
-#endif
}
+#endif
viewport->size(new_w, new_h);
@@ -210,6 +210,7 @@ int DesktopWindow::handle(int event)
fullScreen.setParam(fullscreen_active());
if (!fullscreen_active()) {
size_range(100, 100, viewport->w(), viewport->h());
+ size(viewport->w(), viewport->h());
} else {
// We need to turn off the size limitations for proper
// fullscreen support, but in case fullscreen is activated via