diff --git a/js/ui/boxpointer.js b/js/ui/boxpointer.js index c7a8f92d0..be9c57ce0 100644 --- a/js/ui/boxpointer.js +++ b/js/ui/boxpointer.js @@ -467,7 +467,10 @@ var BoxPointer = GObject.registerClass({ const sourceAllocation = sourceActor.get_allocation_box(); const sourceContentBox = sourceActor instanceof St.Widget ? sourceActor.get_theme_node().get_content_box(sourceAllocation) - : sourceAllocation; + : new Clutter.ActorBox({ + x2: sourceAllocation.get_width(), + y2: sourceAllocation.get_height(), + }); let sourceTopLeft = this._sourceExtents.get_top_left(); let sourceBottomRight = this._sourceExtents.get_bottom_right(); let sourceCenterX = sourceTopLeft.x + sourceContentBox.x1 + (sourceContentBox.x2 - sourceContentBox.x1) * this._sourceAlignment;