3 Commits

Author SHA1 Message Date
54c61a525c fix: add monitor initialization workaround for viewport support
Provides a workaround for missing monitor initialization in platform
backends like imgui-winit-support. Without proper monitor initialization,
Dear ImGui throws "Platform init didn't setup Monitors list?" assertion.

- Add monitor_init_fix module with initialization utilities
- Support single and multi-monitor configurations
- Add unit tests and examples
- Document workaround usage

Co-Authored-By: Elias Stepanik <eliasstepanik@proton.me>
2025-07-10 12:27:37 +02:00
57ae256f37 fix: viewport window creation callbacks not triggered
Identified and implemented workaround for viewport callbacks not being
triggered when windows are dragged outside the main window.

Root cause: ConfigFlags::VIEWPORTS_ENABLE is reset after first render()
call due to an issue in the imgui-rs bindings or Dear ImGui itself.

Workaround: Re-apply the viewport flag before each new_frame() call
using viewport_issue_fix::apply_viewport_fix().

Added:
- viewport_issue_fix module with apply_viewport_fix() function
- Debug and solution examples demonstrating the issue and fix
- Integration tests for the workaround
- Comprehensive documentation of findings in VIEWPORT_FIX_SUMMARY.md

This is a temporary workaround until the root cause is fixed in
imgui-rs or the Dear ImGui library.

Co-Authored-By: Elias Stepanik <eliasstepanik@proton.me>
2025-07-10 11:19:10 +02:00
7fba64ceab Added multi viewport support 2025-07-10 10:09:55 +02:00