diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Window.cxx | 2 | ||||
| -rw-r--r-- | src/Fl_Window_Driver.H | 4 | ||||
| -rw-r--r-- | src/Fl_Window_iconize.cxx | 4 | ||||
| -rw-r--r-- | src/Fl_arg.cxx | 2 | ||||
| -rw-r--r-- | src/Fl_x.cxx | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index 6611e0261..d8b82562b 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -35,7 +35,7 @@ char *Fl_Window::default_xclass_ = 0L; -char Fl_Window::show_iconic_ = 0; +char Fl_Window::show_next_window_iconic_ = 0; Fl_Window *Fl_Window::current_; diff --git a/src/Fl_Window_Driver.H b/src/Fl_Window_Driver.H index 983dfd023..43eee2227 100644 --- a/src/Fl_Window_Driver.H +++ b/src/Fl_Window_Driver.H @@ -114,8 +114,8 @@ public: void x(int X); void y(int Y); void current(Fl_Window *c); - char show_iconic() { return Fl_Window::show_iconic_; } - void show_iconic(char c) { Fl_Window::show_iconic_ = c; } + char show_iconic() { return Fl_Window::show_next_window_iconic(); } + void show_iconic(char c) { Fl_Window::show_next_window_iconic(c); } void flx(Fl_X *x) { pWindow->flx_ = x; } Fl_Cursor cursor_default() { return pWindow->cursor_default; } void destroy_double_buffer(); diff --git a/src/Fl_Window_iconize.cxx b/src/Fl_Window_iconize.cxx index 9b7d6a270..4778546e0 100644 --- a/src/Fl_Window_iconize.cxx +++ b/src/Fl_Window_iconize.cxx @@ -1,7 +1,7 @@ // // Window minification code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -19,7 +19,7 @@ void Fl_Window::iconize() { if (!shown()) { - show_iconic_ = 1; + show_next_window_iconic(1); show(); } else { pWindowDriver->iconize(); diff --git a/src/Fl_arg.cxx b/src/Fl_arg.cxx index 08254c3e9..035d82d96 100644 --- a/src/Fl_arg.cxx +++ b/src/Fl_arg.cxx @@ -126,7 +126,7 @@ int Fl::arg(int argc, char **argv, int &i) { s++; // point after the dash if (fl_match(s, "iconic")) { - Fl_Window::show_iconic_ = 1; + Fl_Window::show_next_window_iconic(1); i++; return 1; } else if (fl_match(s, "kbd")) { diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 642650c5d..6cdf5686c 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -2619,10 +2619,10 @@ void Fl_X::make_xid(Fl_Window* win, XVisualInfo *visual, Colormap colormap) XWMHints *hints = XAllocWMHints(); hints->input = True; hints->flags = InputHint; - if (Fl_Window::show_iconic_) { + if (Fl_Window::show_next_window_iconic()) { hints->flags |= StateHint; hints->initial_state = IconicState; - Fl_Window::show_iconic_ = 0; + Fl_Window::show_next_window_iconic(0); showit = 0; } if (Fl_X11_Window_Driver::driver(win)->icon_ && |
