From f9f58cca546e411514e5b5a1a29e789e389c0115 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 15 Jul 2019 18:13:29 +0200 Subject: [PATCH] Mention that Iconize() and Maximize() don't have immediate effect At least in wxGTK, the change of the window state is asynchronous. --- interface/wx/toplevel.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/interface/wx/toplevel.h b/interface/wx/toplevel.h index 5ad74b5912..361a5794c9 100644 --- a/interface/wx/toplevel.h +++ b/interface/wx/toplevel.h @@ -228,6 +228,12 @@ public: /** Iconizes or restores the window. + Note that in wxGTK the change to the window state is not immediate, + i.e. IsIconized() will typically return @false right after a call to + Iconize() and its return value will only change after the control flow + returns to the event loop and the notification about the window being + really iconized is received. + @param iconize If @true, iconizes the window; if @false, shows and restores it. @@ -285,6 +291,9 @@ public: /** Maximizes or restores the window. + Note that, just as with Iconize(), the change to the window state is + not immediate in at least wxGTK port. + @param maximize If @true, maximizes the window, otherwise it restores it.