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.
2 parents 31a04a2 + 869996c commit 60bb287Copy full SHA for 60bb287
src/WindowManager.vala
@@ -334,8 +334,7 @@ namespace Gala {
334
// Most things inside this "later" depend on GTK. We get segfaults if we try to do GTK stuff before the window manager
335
// is initialized, so we hold this stuff off until we're ready to draw
336
laters.add (Meta.LaterType.BEFORE_REDRAW, () => {
337
- unowned string xdg_session_type = Environment.get_variable ("XDG_SESSION_TYPE");
338
- if (xdg_session_type == "x11") {
+ if (!Meta.Util.is_wayland_compositor ()) {
339
string[] args = {};
340
unowned string[] _args = args;
341
Gtk.init (ref _args);
0 commit comments