Window Resizes Incorrectly with io.ConfigWindowsMoveFromTitleBarOnly #6390

Closed
opened 2023-05-02 03:51:30 +00:00 by estrac · 1 comment
estrac commented 2023-05-02 03:51:30 +00:00 (Migrated from github.com)

Configuration

Dear ImGui 1.89.6 WIP (18954)
--------------------------------
sizeof(size_t): 8, sizeof(ImDrawIdx): 2, sizeof(ImDrawVert): 20
define: __cplusplus=199711
define: _WIN32
define: _WIN64
define: _MSC_VER=1935
define: _MSVC_LANG=201402
--------------------------------
io.BackendPlatformName: imgui_impl_glfw
io.BackendRendererName: imgui_impl_opengl3
io.ConfigFlags: 0x00000003
 NavEnableKeyboard
 NavEnableGamepad
io.ConfigInputTextCursorBlink
io.ConfigWindowsResizeFromEdges
io.ConfigWindowsMoveFromTitleBarOnly
io.ConfigMemoryCompactTimer = 60.0
[snip]

Issue:

With io.ConfigWindowsMoveFromTitleBarOnly window resizes incorrectly when mouse touches top of window draw-able area (top of OS Window).

Reproduces in Demo on GLFW+OpenGL3 example in Dear ImGui on Windows, also observed on SDL2+OpenGL3 on Ubunto Linux.

Video:

https://user-images.githubusercontent.com/26418855/236988621-1c6829da-dd1d-4982-8681-638d61e646f8.mp4

Standalone, minimal, complete and verifiable example:

No new code needed to reproduce

#### Configuration ``` Dear ImGui 1.89.6 WIP (18954) -------------------------------- sizeof(size_t): 8, sizeof(ImDrawIdx): 2, sizeof(ImDrawVert): 20 define: __cplusplus=199711 define: _WIN32 define: _WIN64 define: _MSC_VER=1935 define: _MSVC_LANG=201402 -------------------------------- io.BackendPlatformName: imgui_impl_glfw io.BackendRendererName: imgui_impl_opengl3 io.ConfigFlags: 0x00000003 NavEnableKeyboard NavEnableGamepad io.ConfigInputTextCursorBlink io.ConfigWindowsResizeFromEdges io.ConfigWindowsMoveFromTitleBarOnly io.ConfigMemoryCompactTimer = 60.0 [snip] ``` #### Issue: With `io.ConfigWindowsMoveFromTitleBarOnly` window resizes incorrectly when mouse touches top of window draw-able area (top of OS Window). Reproduces in Demo on GLFW+OpenGL3 example in Dear ImGui on Windows, also observed on SDL2+OpenGL3 on Ubunto Linux. #### Video: https://user-images.githubusercontent.com/26418855/236988621-1c6829da-dd1d-4982-8681-638d61e646f8.mp4 #### Standalone, minimal, complete and verifiable example: No new code needed to reproduce
ocornut commented 2023-05-25 13:23:34 +00:00 (Migrated from github.com)

Thank you reporting this and filling the issue template.
I have now pushed a fix for this: 7e03ae3

Thank you reporting this and filling the issue template. I have now pushed a fix for this: 7e03ae3
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#6390
No description provided.