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>
(cherry picked from commit b09eced160)
This commit is contained in:
Florian Müllner 2024-02-09 17:26:38 +01:00
parent 7406ed51ed
commit d21538fa52
No known key found for this signature in database

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,