Skip to content

[Trivial] xwayland: Fix XIOErrorExitHandler warning

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.

CC: @carlosg

Edited by Olivier Fourdan

Merge request reports

Loading