ImWindow
ImWindow copied to clipboard
The mouse position is not displayed correctly in ImWindowSokolOGL project
The mouse position is not the same as the acquisition position as below:
I can't reproduce your issue.
Can you try to change the value of the second parameter of ImwWindowManagerSokol constructor in main.cpp to false, to disable custom window titlebar.
ImwWindowManagerSokol oMgr(&oSokolDesc, true); //Before
ImwWindowManagerSokol oMgr(&oSokolDesc, false); //After
Thank your reply! change true to false, the mouse position can be acquisition normally
Do you have this problem only with the sokol OpenGL version or it's also present in the DX11 version ?
Dx11, sokologl and sokoldx11 provide self drawing titlebar. At present, only ImWindowSokolOGL projects has this problem. ImWindowDX11 and ImWindowSokolDX11 do not have this problem, which may be caused by my computer's poor support for GL3 In addition, whether ImWindowGLFW and ImWindowOGL projects can also support self drawing title blocks
What brand of GPU do you have? I knew AMD had issue with the borderless mode of EasyWindow and with MSAA under DX11, so there maybe other problems.