From b09eced160adfe61ab5a2ff0642b276b86000c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 9 Feb 2024 17:26:38 +0100 Subject: [PATCH] layout: Don't use supports_extended_barriers() The method was deprecated in favor of backend capabilities, so query those instead. Part-of: --- js/ui/layout.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/layout.js b/js/ui/layout.js index 775489ecc..34bab0711 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -1218,7 +1218,8 @@ class HotCorner extends Clutter.Actor { } _setupFallbackCornerIfNeeded(layoutManager) { - if (!global.display.supports_extended_barriers()) { + const {capabilities} = global.backend; + if ((capabilities & Meta.BackendCapabilities.BARRIERS) === 0) { this.set({ name: 'hot-corner-environs', x: this._x,