ImWindow icon indicating copy to clipboard operation
ImWindow copied to clipboard

The mouse position is not displayed correctly in ImWindowSokolOGL project

Open zhouxs1023 opened this issue 4 years ago • 5 comments

The mouse position is not the same as the acquisition position as below:

123

zhouxs1023 avatar May 03 '20 13:05 zhouxs1023

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

thennequin avatar May 03 '20 18:05 thennequin

Thank your reply! change true to false, the mouse position can be acquisition normally

zhouxs1023 avatar May 04 '20 12:05 zhouxs1023

Do you have this problem only with the sokol OpenGL version or it's also present in the DX11 version ?

thennequin avatar May 04 '20 14:05 thennequin

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

zhouxs1023 avatar May 05 '20 14:05 zhouxs1023

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.

thennequin avatar May 06 '20 21:05 thennequin