79d4d7a4ff
The XIOErrorExitHandler expects (Display *, void *) whereas mutter uses (Display *, MetaX11Display *). That causes a warning at build time: warning: passing argument 2 of ‘XSetIOErrorExitHandler’ from incompatible pointer type [-Wincompatible-pointer-types] 813 | XSetIOErrorExitHandler (xdisplay, x_io_error_exit, display); Actually, the MetaX11Display is not even used, so we can just use the expected API and ignore the value. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1621>