We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86cbe62 commit 869996cCopy full SHA for 869996c
src/WindowManager.vala
@@ -296,8 +296,7 @@ namespace Gala {
296
// Most things inside this "later" depend on GTK. We get segfaults if we try to do GTK stuff before the window manager
297
// is initialized, so we hold this stuff off until we're ready to draw
298
laters.add (Meta.LaterType.BEFORE_REDRAW, () => {
299
- unowned string xdg_session_type = Environment.get_variable ("XDG_SESSION_TYPE");
300
- if (xdg_session_type == "x11") {
+ if (!Meta.Util.is_wayland_compositor ()) {
301
string[] args = {};
302
unowned string[] _args = args;
303
Gtk.init (ref _args);
0 commit comments