diff options
Diffstat (limited to 'vncviewer')
-rw-r--r-- | vncviewer/DesktopWindow.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index 0b957d39..0fe08707 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -885,9 +885,10 @@ void DesktopWindow::fullscreen_on() bool all_monitors = !strcasecmp(fullScreenMode, "all"); bool selected_monitors = !strcasecmp(fullScreenMode, "selected"); - if (not selected_monitors and not all_monitors) - fullscreen_screens(-1, -1, -1, -1); - else { + if (not selected_monitors and not all_monitors) { + int n = Fl::screen_num(x(), y(), w(), h()); + fullscreen_screens(n, n, n, n); + } else { int top, bottom, left, right; int top_y, bottom_y, left_x, right_x; |