Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Nested Compositors have mouse movement problems within 3D Games

Open cid-chan opened this issue 2 years ago • 3 comments

Steps:

  1. run a nested compositor (I tested Cage and labwc)
  2. run a 3d game within them (I tested Portal and Minecraft)
  3. Try to move your camera

Expected: Movement works normally

What actually happens: https://user-images.githubusercontent.com/76440879/212472187-bebcfc95-002a-4b69-9ed4-47ec815c63e0.mp4


Why did I get the idea to do this: I thought this would help me deal with full-screen games better, since the I can just screencapture the nested compositor instead of the game itself.

cid-chan avatar Jan 14 '23 12:01 cid-chan

Running gamescope within a nested compositor yielded me this result. https://user-images.githubusercontent.com/76440879/212472892-27c7775f-6d2e-4c79-9aca-21cc2a413738.mp4

There is far too much mouse sensitivity.

(test.sh just makes a white terminal to increase contrast with my mouse cursor)

cid-chan avatar Jan 14 '23 13:01 cid-chan

I'm pretty sure this is a problem with the micro compositor itself, not Hyprland. At least in my experience mouse sensitivity issues also occurs when using Gamescope in other Wayland environments.

Makrennel avatar Jan 14 '23 15:01 Makrennel

jfc why

vaxerski avatar Jan 14 '23 19:01 vaxerski

this is a wlroots issue iirc, generally you're not supposed to do this anyways

vaxerski avatar Nov 05 '23 16:11 vaxerski