layout: Correct hot corner barriers in RTL layouts
https://bugzilla.gnome.org/show_bug.cgi?id=698884
This commit is contained in:
parent
b9fc7a3050
commit
ba0b4ba590
@ -1092,12 +1092,21 @@ const HotCorner = new Lang.Class({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
|
if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL) {
|
||||||
|
this._verticalBarrier = new Meta.Barrier({ display: global.display,
|
||||||
|
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,
|
||||||
|
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,
|
this._verticalBarrier = new Meta.Barrier({ display: global.display,
|
||||||
x1: this._x, x2: this._x, y1: this._y, y2: this._y + size,
|
x1: this._x, x2: this._x, y1: this._y, y2: this._y + size,
|
||||||
directions: Meta.BarrierDirection.POSITIVE_X });
|
directions: Meta.BarrierDirection.POSITIVE_X });
|
||||||
this._horizontalBarrier = new Meta.Barrier({ display: global.display,
|
this._horizontalBarrier = new Meta.Barrier({ display: global.display,
|
||||||
x1: this._x, x2: this._x + size, y1: this._y, y2: this._y,
|
x1: this._x, x2: this._x + size, y1: this._y, y2: this._y,
|
||||||
directions: Meta.BarrierDirection.POSITIVE_Y });
|
directions: Meta.BarrierDirection.POSITIVE_Y });
|
||||||
|
}
|
||||||
|
|
||||||
this._pressureBarrier.addBarrier(this._verticalBarrier);
|
this._pressureBarrier.addBarrier(this._verticalBarrier);
|
||||||
this._pressureBarrier.addBarrier(this._horizontalBarrier);
|
this._pressureBarrier.addBarrier(this._horizontalBarrier);
|
||||||
|
Loading…
Reference in New Issue
Block a user