pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
466 stars 83 forks source link

Corrupted display in windowed mode #765

Open dcz-self opened 2 weeks ago

dcz-self commented 2 weeks ago

I just built cosmic with cargo build. After cargo run -- yad I get no relevant warnings except:

2024-08-23T15:22:54.595337Z  WARN backend_vulkan: smithay::backend::vulkan: Validation layers not available. These can be installed through your package manager version=1.2.0 variant 0

and about the X11 socket being taken.

The display is corrupted, but it displays to events I think - the mouse cursor causes colors to change, and it reacted to a click by closing.

image

Drakulix commented 2 weeks ago

Are you running on the nvidia driver on X11 by pure chance?

dcz-self commented 2 weeks ago

No, I'm running on X11 on Intel HD 4000.

Drakulix commented 2 weeks ago

So I have seen this kind of corruption with drivers not supporting DRI3 super well, as this mostly comes down to broken modifiers. And the Intel HD 4000 is so old, that this isn't very unlikely to be the case here.

You can try running the windows backend with COSMIC_BACKEND=winit, which is in general more compatible.

dcz-self commented 2 weeks ago

Thanks, COSMIC_BACKEND=winit works! Also, no env var works on AMD.