void-packages/srcpkgs/gnome-shell/patches/fix-xwayland.patch

28 lines
973 B
Diff

This reverts commit 019229c40efb67e3d26f14afa71bf926efeff3fb.
ref: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4284
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 49d3dda22..5a3327b1b 100644
--- ./js/ui/windowManager.js
+++ ./js/ui/windowManager.js
@@ -973,7 +973,6 @@ var WindowManager = class {
}
async _startX11Services(task, cancellable) {
- let status = true;
try {
await Shell.util_start_systemd_unit(
'gnome-session-x11-services-ready.target', 'fail', cancellable);
@@ -984,9 +983,8 @@ var WindowManager = class {
// Note that we do log cancellation from here.
if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.NOT_SUPPORTED))
log('Error starting X11 services: %s'.format(e.message));
- status = false;
} finally {
- task.return_boolean(status);
+ task.return_boolean(true);
}
}