mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-25 13:07:01 +00:00
Modals: fixed issue hovering popups inside a child inside a modal. Fixed IsWindowFocused()/IsWindowHovered() issues with childs inside popups. (#4676)(#4676, #4527)
Amend/fix 6b1e094f, fc4988ffb
(Sep 24)
This commit is contained in:
parent
0f2898ea88
commit
c363b6df2b
@ -39,6 +39,8 @@ Breaking Changes:
|
|||||||
Other Changes:
|
Other Changes:
|
||||||
|
|
||||||
- Added IsMouseTripleClicked() function. Tracking multi-click count in IO structure. (#3229) [@kudaba]
|
- Added IsMouseTripleClicked() function. Tracking multi-click count in IO structure. (#3229) [@kudaba]
|
||||||
|
- Modals: fixed issue hovering popups inside a child inside a modal. (#4676, #4527)
|
||||||
|
- Fixed IsWindowFocused()/IsWindowHovered() issues with childs inside popups. (#4676)
|
||||||
- InputText: made double-click select word, triple-line select line. Word delimitation logic differs
|
- InputText: made double-click select word, triple-line select line. Word delimitation logic differs
|
||||||
slightly from the one used by CTRL+arrows. (#2244)
|
slightly from the one used by CTRL+arrows. (#2244)
|
||||||
- Backends: Vulkan: Call vkCmdSetScissor() at the end of render with a full-viewport to reduce
|
- Backends: Vulkan: Call vkCmdSetScissor() at the end of render with a full-viewport to reduce
|
||||||
|
11
imgui.cpp
11
imgui.cpp
@ -6719,9 +6719,14 @@ void ImGui::PopTextWrapPos()
|
|||||||
|
|
||||||
static ImGuiWindow* GetCombinedRootWindow(ImGuiWindow* window, bool popup_hierarchy)
|
static ImGuiWindow* GetCombinedRootWindow(ImGuiWindow* window, bool popup_hierarchy)
|
||||||
{
|
{
|
||||||
window = window->RootWindow;
|
ImGuiWindow* last_window = NULL;
|
||||||
if (popup_hierarchy)
|
while (last_window != window)
|
||||||
window = window->RootWindowPopupTree;
|
{
|
||||||
|
last_window = window;
|
||||||
|
window = window->RootWindow;
|
||||||
|
if (popup_hierarchy)
|
||||||
|
window = window->RootWindowPopupTree;
|
||||||
|
}
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user