mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
layout: Stop using deprecated display property
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3178>
(cherry picked from commit 9c7e1f1180)
This commit is contained in:
parent
d21538fa52
commit
603790e667
1 changed files with 5 additions and 5 deletions
|
|
@ -593,7 +593,7 @@ export const LayoutManager = GObject.registerClass({
|
|||
let primary = this.primaryMonitor;
|
||||
|
||||
this._rightPanelBarrier = new Meta.Barrier({
|
||||
display: global.display,
|
||||
backend: global.backend,
|
||||
x1: primary.x + primary.width, y1: primary.y,
|
||||
x2: primary.x + primary.width, y2: primary.y + this.panelBox.height,
|
||||
directions: Meta.BarrierDirection.NEGATIVE_X,
|
||||
|
|
@ -1190,23 +1190,23 @@ class HotCorner extends Clutter.Actor {
|
|||
if (size > 0) {
|
||||
if (Clutter.get_default_text_direction() === Clutter.TextDirection.RTL) {
|
||||
this._verticalBarrier = new Meta.Barrier({
|
||||
display: global.display,
|
||||
backend: global.backend,
|
||||
x1: this._x, x2: this._x, y1: this._y, y2: this._y + size,
|
||||
directions: Meta.BarrierDirection.NEGATIVE_X,
|
||||
});
|
||||
this._horizontalBarrier = new Meta.Barrier({
|
||||
display: global.display,
|
||||
backend: global.backend,
|
||||
x1: this._x - size, x2: this._x, y1: this._y, y2: this._y,
|
||||
directions: Meta.BarrierDirection.POSITIVE_Y,
|
||||
});
|
||||
} else {
|
||||
this._verticalBarrier = new Meta.Barrier({
|
||||
display: global.display,
|
||||
backend: global.backend,
|
||||
x1: this._x, x2: this._x, y1: this._y, y2: this._y + size,
|
||||
directions: Meta.BarrierDirection.POSITIVE_X,
|
||||
});
|
||||
this._horizontalBarrier = new Meta.Barrier({
|
||||
display: global.display,
|
||||
backend: global.backend,
|
||||
x1: this._x, x2: this._x + size, y1: this._y, y2: this._y,
|
||||
directions: Meta.BarrierDirection.POSITIVE_Y,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue