-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Win32 borderless windows comment to examine #6659
Comments
Hello, We have recently implemented an SDL3 backend for Dear ImGui. This exact fix b4ebb3b is causing an issue with our integration of Multi-viewports which is an optional but highly-loved feature where users can drag Dear ImGui windows outside of the main window created by the user app, and our backend creates/destroy windows and render contexts to make the transition as smooth as possible. With this change, every time a new window is created or is destroyed, Windows plays a very short "animation", which breaks the effect of simply dragging a window out and back-in. (I assume those animation are technically possible to disable in Windows settings, but that's outside the point of this issue). I am assuming a side effect of this "interact better with window manager" is that Windows enable those animations. I don't know if there are other ways to disable them than set From the POV of that feature, the animation is highly problematic. However, I am aware that Dear ImGui multi-viewport integration is a rather advanced feature which tend to requires of libraries like SDL (or e.g GLFW) an amount control which may be difficult to burden you with. We could consider manually poking into win32's style attributes directly from our backend but it would relatively brittle as the styles computed from Repro:
While it has been challenging for us to get the effect perfect across all platform/rendering/drivers setups (some have e.g. a short flicker when creating a new window) it generally worked well in that setup with SDL2 and generally works much better if I revert this commit. Would you have another suggestion, or could we reinstate this or another hint or allow us to configure this? multiviewportwith.SDL3.mp4PS: as a side-note, the SDL Hints being global settings may be something to consider evolving for SDL3. Ref: |
Okay, I've re-added that hint and defaulted the new behavior on in 20a4e31. Thanks for the feedback!
Yes, we plan to review the hints in SDL3, but your use case feedback is very helpful. Please submit a new issue with an API update that makes sense for you, for tracking purposes. We may not implement that specific API, but we'll consider your needs as we evaluate the hints. Thanks! |
Much appreciated, thanks for the fast feedback! |
SDL/src/video/windows/SDL_windowswindow.c
Lines 86 to 94 in bc5677d
I didn't look at this more closely, but something to consider for SDL3.
The text was updated successfully, but these errors were encountered: