Commit 4892a87d authored by Marco Trevisan's avatar Marco Trevisan 🎺 Committed by Florian Müllner

boxpointer: Compute arrowStride using sourceActor monitor as reference

I suppose this was also the goal of commit 96e14dcb, but because it was checking
the value of the always-undefined this.sourceActor, it really never worked as
expected.

So, now since we assume that this._sourceActor is always defined just use it
as reference to compute the monitor menu position.

Fixes #1029
!435
parent 8b9c8ddb
......@@ -623,10 +623,7 @@ var BoxPointer = GObject.registerClass({
_calculateArrowSide(arrowSide) {
let sourceAllocation = Shell.util_get_transformed_allocation(this._sourceActor);
let [minWidth, minHeight, boxWidth, boxHeight] = this.get_preferred_size();
let monitorActor = this.sourceActor;
if (!monitorActor)
monitorActor = this;
let monitorIndex = Main.layoutManager.findIndexForActor(monitorActor);
let monitorIndex = Main.layoutManager.findIndexForActor(this._sourceActor);
let workarea = Main.layoutManager.getWorkAreaForMonitor(monitorIndex);
switch (arrowSide) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment