summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-11-17 16:55:37 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-11-17 16:55:37 +0100
commit44bb080c0ff81b16d48dccd8d15809f058cc68ea (patch)
treea6bb39936839aedd6be10fd435e84ac3a479fc6b /src/Fl_x.cxx
parenta3fd63fd1d5fb0798210ff5f2d994b72ec0eb39a (diff)
Remove friend declaration from Fl_Window.H (see STR 3354)
Although this was not strictly necessary I decided to implement the proposed patch, but in a slightly different way. This adds a static public method for internal use only but it wouldn't do any harm if a user called it.
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx4
1 files changed, 2 insertions, 2 deletions
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_ &&