-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenPopup after BeginPopup fails when no windows are focused #4308
Comments
Thank you, I could confirm the bug. |
rokups
added a commit
to rokups/imgui
that referenced
this issue
Jul 15, 2021
…a failure to open a popup. (ocornut#4308) Story of removed line begins in commit b80cf0a. It's purpose was to close popups when they lost focus. Later on few other changes were introduced: * bcc49ff - closing popups with RMB without changing window focus * af679a1 - closing popups in FocusWindow() These two changes covered all the cases of popup closing which made deleted line obsolete. Conveniently, now all popup closing is handled from within UpdateMouseMovingWindowEndFrame() either by calling FocusWindow() or ClosePopupsOverWindow().
rokups
added a commit
to rokups/imgui
that referenced
this issue
Jul 22, 2021
…a failure to open a popup. (ocornut#4308) Story of removed line begins in commit b80cf0a. It's purpose was to close popups when they lost focus. Later on few other changes were introduced: * bcc49ff - closing popups with RMB without changing window focus * af679a1 - closing popups in FocusWindow() These two changes covered all the cases of popup closing which made deleted line obsolete. Conveniently, now all popup closing is handled from within UpdateMouseMovingWindowEndFrame() either by calling FocusWindow() or ClosePopupsOverWindow().
ocornut
pushed a commit
that referenced
this issue
Jul 26, 2021
…a failure to open a popup when focus is NULL. (#4308) Story of removed line begins in commit b80cf0a. It's purpose was to close popups when they lost focus. Later on few other changes were introduced: * bcc49ff - closing popups with RMB without changing window focus * af679a1 - closing popups in FocusWindow() These two changes covered all the cases of popup closing which made deleted line obsolete. Conveniently, now all popup closing is handled from within UpdateMouseMovingWindowEndFrame() either by calling FocusWindow() or ClosePopupsOverWindow().
Should be fixed by 3e4c890 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version/Branch of Dear ImGui:
Version: 1.83
Branch: master and docking
My Issue:
Popups fail to open when
OpenPopup
is called afterBeginPopup
and there are no focused windows. (EDIT: To be precise, it works as expected either ifOpenPopup
is used before theBeginPopup
, or if any window has focus.)This appears to be because
NewFrame
callsClosePopupsOverWindow
even wheng.NavWindow
is NULL.imgui/imgui.cpp
Line 4105 in 5dd1e38
Screenshots:
Standalone, minimal, complete and verifiable example:
The text was updated successfully, but these errors were encountered: