Browse Source

Merge pull request #638 from x11clone/fullscreen-multimon-toggle

Update fullscreen window if changing fullScreenAllMonitors option
tags/v1.8.90
astrand 6 years ago
parent
commit
583fb155d4
No account linked to committer's email address
3 changed files with 9 additions and 4 deletions
  1. 2
    2
      CMakeLists.txt
  2. 5
    2
      vncviewer/DesktopWindow.cxx
  3. 2
    0
      win/vncconfig/Authentication.h

+ 2
- 2
CMakeLists.txt View File

@@ -125,8 +125,8 @@ endif()
# need to check for both the header and library and use our own implementation
# in common/os if either doesn't exist.
if(WIN32)
check_c_source_compiles("#include <windows.h>\n#include <wininet.h>\n#include <shlobj.h>\nint main(int c, char** v) {IActiveDesktop iad; return 0;}" HAVE_ACTIVE_DESKTOP_H)
check_c_source_compiles("#include <windows.h>\n#include <wininet.h>\n#include <shlobj.h>\nint main(int c, char** v) {GUID i = CLSID_ActiveDesktop; return 0;}" HAVE_ACTIVE_DESKTOP_L)
check_c_source_compiles("#include <windows.h>\n#include <wininet.h>\n#include <shlobj.h>\nint main(int c, char** v) {IActiveDesktop iad; (void)iad; return 0;}" HAVE_ACTIVE_DESKTOP_H)
check_c_source_compiles("#include <windows.h>\n#include <wininet.h>\n#include <shlobj.h>\nint main(int c, char** v) {GUID i = CLSID_ActiveDesktop; (void)i; return 0;}" HAVE_ACTIVE_DESKTOP_L)
endif()

# X11 stuff. It's in a if() so that we can say REQUIRED

+ 5
- 2
vncviewer/DesktopWindow.cxx View File

@@ -762,7 +762,8 @@ void DesktopWindow::fullscreen_on()
fullscreen_screens(top, bottom, left, right);
}

fullscreen();
if (!fullscreen_active())
fullscreen();
}

void DesktopWindow::grabKeyboard()
@@ -1186,7 +1187,9 @@ void DesktopWindow::handleOptions(void *data)
else
self->ungrabKeyboard();

if (fullScreen && !self->fullscreen_active())
// Call fullscreen_on even if active since it handles
// fullScreenAllMonitors
if (fullScreen)
self->fullscreen_on();
else if (!fullScreen && self->fullscreen_active())
self->fullscreen_off();

+ 2
- 0
win/vncconfig/Authentication.h View File

@@ -29,7 +29,9 @@
#include <rfb/Security.h>
#include <rfb/SecurityServer.h>
#include <rfb/SSecurityVncAuth.h>
#ifdef HAVE_GNUTLS
#include <rfb/SSecurityTLS.h>
#endif
#include <rfb/Password.h>

static rfb::BoolParameter queryOnlyIfLoggedOn("QueryOnlyIfLoggedOn",

Loading…
Cancel
Save