diff options
author | Pierre Ossman <ossman@cendio.se> | 2012-10-17 07:59:20 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2012-10-17 07:59:20 +0000 |
commit | cb68c19e1d41f971c833e73133d1bba96f11ed4f (patch) | |
tree | fb29c53a0e70ea6a005dccb35c5ae37f11761287 | |
parent | 897067bd8409821e10ac2a1a57648fbc19432347 (diff) | |
download | tigervnc-cb68c19e1d41f971c833e73133d1bba96f11ed4f.tar.gz tigervnc-cb68c19e1d41f971c833e73133d1bba96f11ed4f.zip |
Starting in full screen was misbehaving because we were waiting
for a FL_FULLSCREEN event to set things up properly, and FLTK
doesn't emit this for a hidden window.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5004 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r-- | vncviewer/DesktopWindow.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index 486daf1d..5cec60b9 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -136,6 +136,13 @@ DesktopWindow::DesktopWindow(int w, int h, const char *name, show(); + // Full screen events are not sent out for a hidden window, + // so send a fake one here to set up things properly. +#ifdef HAVE_FLTK_FULLSCREEN + if (fullscreen_active()) + handle(FL_FULLSCREEN); +#endif + // Unfortunately, current FLTK does not allow us to set the // maximized property on Windows and X11 before showing the window. // See STR #2083 and STR #2178 |