obs-vkcapture icon indicating copy to clipboard operation
obs-vkcapture copied to clipboard

Cursor not alligned on some windows

Open scaledteam opened this issue 3 years ago • 4 comments

Looks like sometimes it aligned with wrong windows.

Chromium - not aligned Blender - aligned ClassiCube - aligned Minecraft 1.16.5 (java 11) - not aligned Minecraft 1.0 (java 8) - not aligned Counter Strike 1.6 - aligned mpv player - aligned

scaledteam avatar Aug 20 '21 10:08 scaledteam

Are you on X11 or Wayland?

nowrep avatar Aug 20 '21 10:08 nowrep

X11

scaledteam avatar Aug 20 '21 10:08 scaledteam

So either it picks the wrong window id or the coords translation is not correct.

You can check if the window id is correct by comparing winid from here ctx->tdata.winid https://github.com/nowrep/obs-vkcapture/blob/73c631e219f234baa3e4424cd3526eb0f3ffe2cb/src/vkcapture.c#L242-L250

and with the window id of the captured window (xwininfo).

nowrep avatar Aug 20 '21 11:08 nowrep

I use polymc to start minecraft (1.16.1). The cursor is only captured on the top left monitor.

Relacibo avatar Feb 25 '22 00:02 Relacibo