mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
MetaWayland: install an X io error handler
This way can detect X disconnections correctly, crash with a core dump and reset the tty. https://bugzilla.gnome.org/show_bug.cgi?id=706962
This commit is contained in:
@ -75,6 +75,8 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "meta-xwayland-private.h"
|
||||
|
||||
#define GRAB_OP_IS_WINDOW_SWITCH(g) \
|
||||
(g == META_GRAB_OP_KEYBOARD_TABBING_NORMAL || \
|
||||
g == META_GRAB_OP_KEYBOARD_TABBING_DOCK || \
|
||||
@ -516,6 +518,9 @@ meta_display_open (void)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (meta_is_wayland_compositor ())
|
||||
meta_xwayland_complete_init ();
|
||||
|
||||
if (meta_is_syncing ())
|
||||
XSynchronize (xdisplay, True);
|
||||
|
||||
|
Reference in New Issue
Block a user