layout: Don't use supports_extended_barriers()

The method was deprecated in favor of backend capabilities,
so query those instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3176>
This commit is contained in:
Florian Müllner 2024-02-09 17:26:38 +01:00
parent 02c85fbb64
commit b09eced160

View File

@ -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,