mirror of
https://github.com/brl/mutter.git
synced 2024-11-09 23:46:33 -05:00
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. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1621>
This commit is contained in:
parent
c5ad7fe2b4
commit
79d4d7a4ff
@ -336,8 +336,8 @@ x_io_error (Display *display)
|
||||
|
||||
#ifdef HAVE_XSETIOERROREXITHANDLER
|
||||
static void
|
||||
x_io_error_exit (Display *display,
|
||||
MetaX11Display *x11_display)
|
||||
x_io_error_exit (Display *display,
|
||||
void *data)
|
||||
{
|
||||
MetaWaylandCompositor *compositor = meta_wayland_compositor_get_default ();
|
||||
MetaXWaylandManager *manager = &compositor->xwayland_manager;
|
||||
|
Loading…
Reference in New Issue
Block a user