From b4995f979d127cea667b4e2b71c91e9db4ab52ef Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Fri, 6 Feb 2026 18:12:40 +0500 Subject: wip --- src/Fl_Window.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Fl_Window.cxx') diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index e60a68eaa..b777463ac 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -105,7 +105,8 @@ Fl_Window::~Fl_Window() { \see top_window() */ Fl_Window *Fl_Widget::window() const { - for (Fl_Widget *o = parent(); o; o = o->parent()) + Fl_Widget *o; + for (o = parent(); o; o = o->parent()) if (o->type() >= FL_WINDOW) return (Fl_Window*)o; return 0; } -- cgit v1.2.3