-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Submenus that do not fit the main window show up behind the main window (SDL2/OpenGL3/GNOME3) #8105
Comments
Thank you Manuel for reporting. We have many issues with Linux-ish window managers and the multi-viewport feature. Does your WM setups somehow prevents code/api from focusing a window or creating a window in front of the window stack? Could you open "Tools->Debug Log", click [X] Focus, [X] Viewports [X] IO, then trigger the issue and submit the log? Additionally, if you have a chance to compile the GLFW+OpenGL3 example and the SDL3+OpenGL3 example I would be curious to know if they exhibit the same issue. Thank you! |
The general unfortunately workaround at this point is that I'm not sure I would enable multi-viewports when shipping apps for X or Wayland. An alternative is to create an intentionally large main host window and let user move their individual tools within it. |
Update: I tested on the same computer with another user (also on GNOME) and with that I could not reproduce it. So it seems to be some kind of setting in my desktop environment or window manager that causes this. I see you also asked some questions in the meantime. I'll try to respond to them. I do have the "Focus on hover" enabled, but when I change it back to "Click to focus" (using Gnome Tweaks), I don't see the problem go away. |
Here's the requested log:
|
Thanks for those tests. To narrow the cause could you try: (1) in SDL3 backend, try to comment out the (2) In SDL3 backend, try to comment out the (3) in SDL2 backend, try to comment the |
I'm using SDL 2.30.8. For these tests:
In other words, none of these changes seems to have had any effect. |
Anything else I can test or try? |
OK, I found the setting that causes the issue. It's in the Schema The setting has the following descriptions:
I'll leave it on I hope this helps to fix the issue. |
Version/Branch of Dear ImGui:
v1.91.4-docking-12-g646df390
Back-ends:
SDL2+OpenGL3
Compiler, OS:
Linux + GCC
Full config/build information:
Details:
When I open a submenu from a main menu bar and the submenu doesn't fit into the main window, it shows up behind the main window, instead of on top of the main window.
I'm on Debian GNU/Linux testing, with GNOME 47, on Xorg.
What I did to test:
docking
branch:git checkout docking
cd examples/example_sdl2_opengl3
andmake
./example_sdl2_opengl3
Dear ImGui Demo
window, clickExample > Main menu bar
.File > Open Recent > More ... > Recurse > Open Recent > ...
until a submenu doesn't fit in the main window anymore. See screenshot 1.I also opened the colors menu in the demo app, which doesn't fit vertically, and the same thing happens, see screenshot 2.
For more context see also openMSX/openMSX#1792 .
Screenshots/Video:
screenshot 1:
screenshot 2:
Minimal, Complete and Verifiable Example code:
See demo application as referred to above.
The text was updated successfully, but these errors were encountered: