Supreeeme / xwayland-satellite

Xwayland outside your Wayland
Mozilla Public License 2.0
210 stars 10 forks source link

Fix panic when WM_NAME has invalid UTF-8 #26

Closed galister closed 5 months ago

galister commented 5 months ago

I encountered this panic when running an old windows program via wine.

Using from_utf8_lossy instead will replace invalid characters with �

I also changed NET_WM_NAME, which as we know supposed to be valid UTF-8, but I believe it's better to not panic, just in case it isn't.

Supreeeme commented 5 months ago

Thanks!