Skip to content

Commit 60bb287

Browse files
authored
Merge branch 'main' into lenemter/fix-xsettings
2 parents 31a04a2 + 869996c commit 60bb287

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/WindowManager.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,7 @@ namespace Gala {
334334
// Most things inside this "later" depend on GTK. We get segfaults if we try to do GTK stuff before the window manager
335335
// is initialized, so we hold this stuff off until we're ready to draw
336336
laters.add (Meta.LaterType.BEFORE_REDRAW, () => {
337-
unowned string xdg_session_type = Environment.get_variable ("XDG_SESSION_TYPE");
338-
if (xdg_session_type == "x11") {
337+
if (!Meta.Util.is_wayland_compositor ()) {
339338
string[] args = {};
340339
unowned string[] _args = args;
341340
Gtk.init (ref _args);

0 commit comments

Comments
 (0)