You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My Problem is identical to #7354 except that I am on SDL backend.
Tooltips (when created as a viewport) steal input focus.
However, if I modify the create function in imgui_impl_sdl2.cpp with the following two lines preceding the create it works for me: (see example code below)
Incidentally I find that using SDL_WINDOW_POPUP_MENU there instead of SDL_WINDOW_TOOLTIP also makes it work, and is possibly something to be used for menus, but using SDL_WINDOW_TOOLTIP does not seem to break menu popups.
I'm not sure if this is the correct way to solve this, but I hope this can help.
For now I'll be using this in my project unless there is a better way.
The text was updated successfully, but these errors were encountered:
ocornut
changed the title
Focused window pushed into the background by tooltips of other windows
SDL: focused viewport pushed into the background by tooltips in its own viewport
Sep 3, 2024
Version/Branch of Dear ImGui:
Version 1.91 docking
Back-ends:
imgui_impl_sdl2.cpp + imgui_impl_opengl3.cpp
Compiler, OS:
Linux + GCC
Full config/build information:
Details:
My Problem is identical to #7354 except that I am on SDL backend.
Tooltips (when created as a viewport) steal input focus.
However, if I modify the create function in imgui_impl_sdl2.cpp with the following two lines preceding the create it works for me: (see example code below)
Incidentally I find that using
SDL_WINDOW_POPUP_MENU
there instead ofSDL_WINDOW_TOOLTIP
also makes it work, and is possibly something to be used for menus, but usingSDL_WINDOW_TOOLTIP
does not seem to break menu popups.I'm not sure if this is the correct way to solve this, but I hope this can help.
For now I'll be using this in my project unless there is a better way.
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: