ocornut
e05bd9deb9
Merge branch 'master' into docking
...
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
# Conflicts:
# backends/imgui_impl_dx9.cpp
# backends/imgui_impl_metal.mm
# backends/imgui_impl_opengl2.cpp
# backends/imgui_impl_opengl3.cpp
# backends/imgui_impl_sdlgpu3.cpp
# imgui.cpp
# imgui_internal.h
# imgui_widgets.cpp
2026-03-20 16:37:35 +01:00
ocornut
4af77622d9
Scrollbar: Fixed an issue which could lead initial click to move the current scroll by a pixel.
2026-03-20 16:14:17 +01:00
ocornut
2315b9f33d
InputTextMultiline: fixed an issue where edit buffer wouldn't be reapplied to back buffer on the IsItemDeactivatedAfterEdit() frame. ( #9308 , #8915 , #8273 )
2026-03-20 15:48:14 +01:00
ocornut
04dfcd838b
InputTextMultiline: fixed losing revert value when activating scrollbar. (toward #9308 )
2026-03-20 15:48:14 +01:00
ocornut
2d957152e4
InputTextMultiline: avoid going through reactivation path and InputTextDeactivateHook() when activating scrollbar. ( #9308 )
2026-03-20 15:37:56 +01:00
ocornut
325563a982
InputTextMultiline: InputTextMultiline: fixed an issue calculating lines count when active.
...
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
Amend 4252275
2026-03-20 15:17:07 +01:00
Pascal Thomet
763db046fa
Docs: fixed imgui_manual -> imgui_explorer link. ( #9315 )
2026-03-20 12:40:32 +01:00
ocornut
3a26b640b2
Drag and Drop: make SetDragDropPayload() memcpy size match our buffer.
2026-03-20 11:50:05 +01:00
ocornut
386ce49c58
Backends: DirectX9: fixed build typo in 0500e54.
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
scheduled / scheduled (push) Has been cancelled
2026-03-19 18:17:35 +01:00
ocornut
b2c3e37d55
Multi-Select: fix/amend 9700846. . ( #9307 , #1861 )
2026-03-19 16:58:14 +01:00
ocornut
9700846bb3
MultiSelect: added ImGuiMultiSelectFlags_SelectOnClickAlways mode. Prevents Drag and Drop of multiple items but allows BoxSelect to always reselect even when clicking inside a selecttion. ( #9307 , #1861 )
2026-03-19 16:39:50 +01:00
ocornut
0b4967992a
MultiSelect: Box-Select: removed now seemingly unnecessary 'selected==false' check, which will also prevent implementation of ImGuiMultiSelectFlags_SelectOnClickAlways. ( #9307 )
...
We enter into the block either though navigation, and then the Mouse check fails, either through mouse, and then Selected==false is tested above.
Amend f904a6646 .
2026-03-19 16:29:03 +01:00
ocornut
20d8bcb600
(Breaking) MultiSelect: renamed ImGuiMultiSelectFlags_SelectOnClick to ImGuiMultiSelectFlags_SelectOnAuto. ( #1861 , #6518 )
2026-03-19 16:04:04 +01:00
ocornut
358d3912c9
Backends: SDLRenderer2/3: fixed build, typo in 0500e54.
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
2026-03-19 12:34:11 +01:00
ocornut
4d1ba782ee
Revert changing default value of ImTextureID_Invalid to -1. Back to 0. ( #9295 , #9310 , #9293 , #8745 , #8465 , #7090 )
...
Reverts 0db591935f
2026-03-19 11:54:42 +01:00
ocornut
0500e546b5
Backends: DX9, Metal, SDLRenderer2/3: fixed more assumptions that ImTextureID_Invald == 0 + Amend Changelogs. ( #9310 , #9293 )
2026-03-19 11:47:01 +01:00
Starman
7fc3092870
Backends: SDLGPU3: Prevent DestroyTexture from deleting invalid textures if ImTextureID_Invalid != 0. ( #9310 , #9293 )
...
Amend 0db5919
2026-03-19 11:31:48 +01:00
ocornut
b724f940d6
InputText: fixed selection highlight Y1 offset being very slightly off (since 1.92.3). ( #9311 )
...
Fixes 1e52e7b90c
2026-03-19 11:20:00 +01:00
ocornut
4252275c64
InputTextMultiline: fixed an issue calculating lines count when inactive, no word-wrap, and ending with a \n.
...
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
scheduled / scheduled (push) Has been cancelled
Amend 1e52e7b90c (#3237 , #952 , #1062 , #7363 )
2026-03-18 20:12:14 +01:00
ocornut
6abe65aac6
InputText: amend fix to avoid PVS-Studio sort of rightful false positive. Amend f4c2f50. ( #9174 )
...
Checking for state != NULL in the two othr functions where state is already deferenced was misleading.
imgui_widgets.cpp:4496:1: error: V595 The 'state' pointer was utilized before it was verified against nullptr. Check lines: 4496, 4500.
imgui_widgets.cpp:5273:1: error: V595 The 'state' pointer was utilized before it was verified against nullptr. Check lines: 5273, 5289.
2026-03-18 18:57:02 +01:00
ocornut
f4c2f50896
InputText: fixed a crash when handling ImGuiInputTextFlags_CallbackResize. ( #9174 )
...
Fix/amend cb3b7ff .
2026-03-18 18:37:04 +01:00
ocornut
27cacb0e30
Fixed GetForegroundDrawList()/GetBackgroundDrawList() per-viewport buffers not being collected/ ( #9303 )
2026-03-18 16:48:18 +01:00
ocornut
709be8c495
Discard/GC of ImDrawList buffers for unused windows favor restoring them to ~Size*1.05 instead of Capacity when awakening again. ( #9303 )
...
+ made "GC now" button process even active windows.
2026-03-18 15:34:12 +01:00
ocornut
994ca12b29
Fixed warning. (Amend 1677236)
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
scheduled / scheduled (push) Has been cancelled
2026-03-16 18:51:38 +01:00
ocornut
6464276b62
InputText: cleanup/rework old comments + remove unnecessary indent in callback and main block setting apply_new_text.
...
Amend 00f12b9a0 , 3349296370 etc.
2026-03-16 18:42:28 +01:00
ocornut
16772365e2
Moved ImGuiButtonFlags_AllowOverlap from imgui_internal.h to imgui.h + standardize comments.
2026-03-16 18:42:22 +01:00
ocornut
8957b3df03
InputScalar: minor rework to facilitate incoming change. Intended to have no side-effects.
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
2026-03-16 11:41:01 +01:00
ocornut
60d7fb207e
Merge branch 'master' into docking
...
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
# Conflicts:
# imgui.cpp
2026-03-13 17:09:34 +01:00
Yan Pujante
4a2e3cce69
Examples: SDL2+WebGPU: fixes hi-dpi handling. ( #9300 )
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
scheduled / scheduled (push) Has been cancelled
2026-03-13 17:07:47 +01:00
ocornut
fd752d8357
InputText: Fixed a glitch when using ImGuiInputTextFlags_ElideLeft where the local x offset would be incorrect during the deactivation frame. ( #9298 )
2026-03-13 16:32:39 +01:00
ocornut
d02c645e38
Nav: short Gamepad Activation press on InputText() always activate with Text Input mode.
2026-03-13 15:07:46 +01:00
ocornut
49ee151ed6
Nav: pressing gamepad north button activates context menus.
...
+ update ShowUserGuide().
2026-03-13 15:07:46 +01:00
ocornut
b76ab6232d
Nav: changed Gamepad mapping for "Activate with Text Input" action from FaceUp press to FaceDown long press. ( #8803 , #787 )
2026-03-13 15:07:46 +01:00
ocornut
6dbda97fee
Backends: OpenGL2, OpenGL3, SDLRenderer3: replaced erroneous IM_ASSERT(tex->TexID == 0) calls. ( #9295 , #9293 )
...
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
scheduled / scheduled (push) Has been cancelled
Amend/fix 0db5919 which revealed this.
2026-03-12 19:29:39 +01:00
ocornut
90743d3112
Nav: allow ImGuiKey_Menu or Shift + F10 to work on Begin()...BeginPopupContextItem() sequence aiming at title bar. ( #8803 , #9270 )
2026-03-12 19:12:47 +01:00
ocornut
14a500a476
Nav: allow ImGuiKey_Menu or Shift + F10 to open context menus. Rework with polling in NavUpdate(). ( #8803 , #9270 )
...
This might be a little less flexible but removes burden from the higher-frequency calls.
2026-03-12 18:52:42 +01:00
ocornut
6cc99a6e2b
Nav: allow ImGuiKey_Menu or Shift + F10 to open context menus. Amends. ( #8803 , #9270 )
...
This doesn't attempt to move the shortcut polling in NavUpdate() yet.
2026-03-12 18:30:05 +01:00
exelix
a103826154
Nav: allow ImGuiKey_Menu or Shift + F10 to open context menus. ( #8803 , #9270 )
2026-03-12 18:24:34 +01:00
ocornut
0db591935f
Changed default ImTextureID_Invalid value to -1 instead of 0 +added comments. ( #9293 , #8745 , #8465 , #7090 )
2026-03-12 14:44:15 +01:00
ocornut
80f8298769
Backends: Vulkan: fixed warning.
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
2026-03-11 22:07:56 +01:00
ocornut
1fbab15c0a
Focus: fixed fallback "Debug" window temporarily taking focus and setting io.WantCaptureKeyboard for a frame. ( #9243 )
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
scheduled / scheduled (push) Has been cancelled
2026-03-11 21:59:44 +01:00
Michael Böhme
7546f1eb16
Backends: Vulkan: ImGui_ImplVulkan_AddTexture() skips updating descriptor_set if failing to allocate. ( #8677 )
...
Reduce error surface to the check_vk_result() call.
2026-03-11 21:22:50 +01:00
omar
5220c14f4b
Docs: update readme.
2026-03-11 21:16:49 +01:00
ocornut
8f63c3691d
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_vulkan.cpp
# imgui.cpp
# imgui_demo.cpp
2026-03-11 21:07:46 +01:00
ocornut
378cb85bf0
Amend missing Changelog entry. ( #9115 )
2026-03-11 21:02:46 +01:00
ocornut
5aa7d61139
InputText: reworked so that io.ConfigInputTextEnterKeepActive reactivate in order for e.g. IsItemDeactivatedAfterEdit() to work. Amends. ( #9001 , #9115 )
...
Rework. Fixes dangling InputTextReactivateId in case of field being hidden on activation.
2026-03-11 20:33:18 +01:00
xttt
03a9946a14
InputText: reworked so that io.ConfigInputTextEnterKeepActive reactivate in order for e.g. IsItemDeactivatedAfterEdit() to work. ( #9001 , #9115 )
2026-03-11 20:15:48 +01:00
MaciejDziuban
decb5cdf10
Backends: Vulkan: added ImGui_ImplVulkan_PipelineInfo::ExtraDynamicStates. ( #9211 )
...
This new setting allows an application to force the pipeline created by vulkan backend to specify more dynamic states than just default viewport and scissor.
It is useful e.g. when using draw list callbacks, e.g. adding VK_DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT to be able to use vkCmdSetColorBlendEquationEXT inside callbacks.
2026-03-11 17:00:47 +01:00
ocornut
5dd56d4bb5
Demo: add an option to enable ImGuiSliderFlags_ColorMarkers in Multi-Components section + fixed warnings.
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
scheduled / scheduled (push) Has been cancelled
2026-03-09 18:01:37 +01:00
Yan Pujante
512982d0d2
Examples: Emscripten: fixes minor rendering issues ( #9281 )
...
- in Firefox, scrollbar would appear => adding overflow: hidden fixes this issue
- when the canvas has the focus, Chrome draws a very small blue outline, setting it to none fixes this issue
2026-03-09 16:54:21 +01:00