Supreeeme / xwayland-satellite

Xwayland outside your Wayland
Mozilla Public License 2.0
166 stars 8 forks source link

Fix panic when WM_NAME has invalid UTF-8 #26

Closed galister closed 3 months ago

galister commented 3 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 3 months ago

Thanks!