You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 17, 2018. It is now read-only.
Firefox doesn't support Wayland yet, but GDK prefers Wayland to X11
when both environments are available. To keep the extension usable on
Wayland environments, we have to force GDK to choose the X11 backend.
There is a function in C API of GDK called gdk_set_allowed_backends,
which can be used to modify the priority of GDK backends. It must be
called before opening a display. However, the usual way to import GDK
in python, 'from gi.repository import Gdk', runs override scripts which
automatically calls gdk_init_check.
Therefore, we use 'gi.module.get_introspection_module' instead of the
standard way to access gdk_set_allowed_backends. Calling it with 'x11'
makes sure that we always use the X11 backend, which is the only GDK
backend currently supported by Firefox.
This commit fixesGKFX#1.
On GNOME with Wayland, as seen on Debian Buster,
GdkX11.X11Window.foreign_new_for_display
throwsso the title bar isn't hidden, because
GdkX11.X11Display.get_default()
returned a Wayland display, not an X11 display.The text was updated successfully, but these errors were encountered: