From 44bb080c0ff81b16d48dccd8d15809f058cc68ea Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 17 Nov 2023 16:55:37 +0100 Subject: 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. --- src/Fl_x.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Fl_x.cxx') 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_ && -- cgit v1.2.3