YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
4.12k stars 123 forks source link

Cursor is corrupted after waking from sleep #634

Closed raiguard closed 2 weeks ago

raiguard commented 2 months ago

When I wake my PC from sleep, the cursor is corrupted. It remains this way until the cursor image is changed.

Taking a screenshot was impossible, so here is a photo:

image

System Information

YaLTeR commented 2 months ago

This is most likely a driver bug, nothing niri can help.

raiguard commented 2 months ago

It only occurs on my desktop and only with Niri, but I agree that the root cause is likely in the drivers. I will poke around more and will let you know if I find anything.

g3r commented 2 months ago

I don't think it is a driver bug, I have the same cursor corruption on Nvidia GPU (proprietary driver). Also I can't reproduce on other compositors

Manjaro Nvidia 960 Intel i7-6700k

YaLTeR commented 2 months ago

Does it work fine on cosmic too?

YaLTeR commented 2 weeks ago

Any updates on this? I've seen some cases of this corrupted cursor myself, sometimes when connecting an external output to a sleeping (powersaving) dGPU in a laptop. But I'm not sure it's something on niri side.

g3r commented 2 weeks ago

Still happens to me. I didn't see it happening in Cosmic but is hard to reproduce during normal use. I don't use sleep

Steps to reproduce reliably in niri: Enable warp-mouse-to-focus Shutdown computer ( logout or reboot is not enough) After start up don't move the mouse and open firefox with a shortcut The cursor moves to the window and appears corrupted Moving the cursor until it changes shape fixes it

g3r commented 2 weeks ago

Update: I saw the glitch in Cosmic too, maybe it's something in smithay

YaLTeR commented 2 weeks ago

Well yeah it's probably not a niri issue so I'll close it (feel free to reopen if it does turn out to be a niri issue). I still suspect it's something in the driver.