aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Fedoreanu <phedoreanu@users.noreply.github.com>2024-12-16 20:42:14 +0100
committerPierre Ossman <ossman@cendio.se>2025-01-29 14:03:59 +0100
commit62d47fc4aab4419dbc2937b4aebdc6ff52671f06 (patch)
treef596ab6c6f5941224759571cd948c9933b75b199
parenta1da2b6ac56a35bb46e9a32317d894d9595e3dc4 (diff)
downloadtigervnc-62d47fc4aab4419dbc2937b4aebdc6ff52671f06.tar.gz
tigervnc-62d47fc4aab4419dbc2937b4aebdc6ff52671f06.zip
Avoid conflict with Fl_Window::maximize()
First step to enable compatibility with FLTK 1.4.
-rw-r--r--vncviewer/DesktopWindow.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index 45d22ef2..c11f9f85 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -174,7 +174,7 @@ DesktopWindow::DesktopWindow(int w, int h, const char *name,
#ifdef __APPLE__
// On OS X we can do the maximize thing properly before the
// window is showned. Other platforms handled further down...
- if (maximize) {
+ if (::maximize) {
int dummy;
Fl::screen_work_area(dummy, dummy, w, h, geom_x, geom_y);
}
@@ -213,7 +213,7 @@ DesktopWindow::DesktopWindow(int w, int h, const char *name,
// maximized property on Windows and X11 before showing the window.
// See STR #2083 and STR #2178
#ifndef __APPLE__
- if (maximize) {
+ if (::maximize) {
maximizeWindow();
}
#endif