Update imgui to 1.92.9
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 8de8beaafd19092491959493ac00c87418c61349 Mon Sep 17 00:00:00 2001
|
||||
From f3521858ec789abb019d66d4fa83c45ac62e74e9 Mon Sep 17 00:00:00 2001
|
||||
From: Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
Date: Tue, 22 Oct 2024 15:09:14 +0200
|
||||
Subject: [PATCH 2/2] Add ImGuiWindowFlags_NoFocusOnClick flag
|
||||
@@ -9,10 +9,10 @@ Subject: [PATCH 2/2] Add ImGuiWindowFlags_NoFocusOnClick flag
|
||||
2 files changed, 4 insertions(+)
|
||||
|
||||
diff --git a/imgui.cpp b/imgui.cpp
|
||||
index e7eb77038..95f4cbeac 100644
|
||||
index cf3dd125c..06e7272c4 100644
|
||||
--- a/imgui.cpp
|
||||
+++ b/imgui.cpp
|
||||
@@ -5362,6 +5362,9 @@ void ImGui::UpdateMouseMovingWindowEndFrame()
|
||||
@@ -5429,6 +5429,9 @@ void ImGui::UpdateMouseMovingWindowEndFrame()
|
||||
// Handle the edge case of a popup being closed while clicking in its empty space.
|
||||
// If we try to focus it, FocusWindow() > ClosePopupsOverWindow() will accidentally close any parent popups because they are not linked together any more.
|
||||
ImGuiWindow* hovered_root = hovered_window ? hovered_window->RootWindow : NULL;
|
||||
@@ -20,13 +20,13 @@ index e7eb77038..95f4cbeac 100644
|
||||
+ return;
|
||||
+
|
||||
const bool is_closed_popup = hovered_root && (hovered_root->Flags & ImGuiWindowFlags_Popup) && !IsPopupOpen(hovered_root->PopupId, ImGuiPopupFlags_AnyPopupLevel);
|
||||
const bool is_queued_focus_request = g.NavMoveSubmitted && (g.NavMoveFlags & ImGuiNavMoveFlags_FocusApi);
|
||||
|
||||
if (hovered_window != NULL && !is_closed_popup)
|
||||
diff --git a/imgui.h b/imgui.h
|
||||
index 66a58e1f0..3d41c6b15 100644
|
||||
index 35e944c90..111c6aed4 100644
|
||||
--- a/imgui.h
|
||||
+++ b/imgui.h
|
||||
@@ -1186,6 +1186,7 @@ enum ImGuiWindowFlags_
|
||||
@@ -1190,6 +1190,7 @@ enum ImGuiWindowFlags_
|
||||
ImGuiWindowFlags_NoNavInputs = 1 << 16, // No keyboard/gamepad navigation within the window
|
||||
ImGuiWindowFlags_NoNavFocus = 1 << 17, // No focusing toward this window with keyboard/gamepad navigation (e.g. skipped by Ctrl+Tab)
|
||||
ImGuiWindowFlags_UnsavedDocument = 1 << 18, // Display a dot next to the title. When used in a tab/docking context, tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar.
|
||||
|
||||
Reference in New Issue
Block a user