mirror of
https://github.com/ocornut/imgui.git
synced 2026-10-29 07:54:40 +00:00
Clicking an OSX app title bar clears the focused item in the window #8574
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#8574
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version/Branch of Dear ImGui:
v1.91.9 WIP Docking
Back-ends:
Custom
Compiler, OS:
Clang 16
Full config/build information:
Details:
Clicking the native OSX window title bar to drag the window causes the internal focused window to be cleared. This causes the user to have to click back into the window to set the focus before triggering any shortcuts.
Screenshots/Video:
Tests tab has focus.

After clicking on the title bar you can see it has lost focus.

Callstack.

Code that clears the focus.

Commenting that line out fixes the issue. That isn't the right solution but shows there needs to be more logic around that call.
Minimal, Complete and Verifiable Example code: