ui: restrict gtk to only use the x11 backend
We use GTK as a way to get the X11 connection for our internal use, so we need it to keep using X. https://bugzilla.gnome.org/show_bug.cgi?id=706303
This commit is contained in:
parent
bfc87d13cb
commit
4fd3c63da9
@ -56,6 +56,8 @@ struct _MetaUI
|
|||||||
void
|
void
|
||||||
meta_ui_init (void)
|
meta_ui_init (void)
|
||||||
{
|
{
|
||||||
|
gdk_set_allowed_backends ("x11");
|
||||||
|
|
||||||
if (!gtk_init_check (NULL, NULL))
|
if (!gtk_init_check (NULL, NULL))
|
||||||
meta_fatal ("Unable to open X display %s\n", XDisplayName (NULL));
|
meta_fatal ("Unable to open X display %s\n", XDisplayName (NULL));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user