From 8592cddcfdd57c21014e1146239776ed78fd9fb4 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 20 Oct 2014 15:14:12 +0000 Subject: We need to put the newly created window in our window list as quickly as possible or we might miss important window messages. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_win32.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 0872981f5..df86652d2 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1911,6 +1911,9 @@ Fl_X* Fl_X::make(Fl_Window* w) { ); if (lab) free(lab); + x->next = Fl_X::first; + Fl_X::first = x; + x->set_icons(); if (w->fullscreen_active()) { @@ -1925,9 +1928,6 @@ Fl_X* Fl_X::make(Fl_Window* w) { rect.right - rect.left, rect.bottom - rect.top); } - x->next = Fl_X::first; - Fl_X::first = x; - // Setup clipboard monitor target if there are registered handlers and // no window is targeted. if (!fl_clipboard_notify_empty() && clipboard_wnd == NULL) -- cgit v1.2.3