From a69d99527dedfab409fe7f14f3502b18edd578ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Fri, 24 Jun 2022 13:11:31 +0200 Subject: [PATCH] appDisplay: Consider drop targets on !currentPage as invalid The iconGrid's getDropTarget() API supports dropping items to adjacent pages just fine, but in the AppDisplay, we clip the grid and don't show those adjacent pages. That doesn't stop getDropTarget() from picking drop targets which are on adjacent pages though, so we need to filter those out in the layer above. Part-of: --- js/ui/appDisplay.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 5008130ad..0d0b1e56a 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -798,6 +798,7 @@ var BaseAppView = GObject.registerClass({ // Dragging over invalid parts of the grid cancels the timeout if (item === source || + page !== this._grid.currentPage || dragLocation === IconGrid.DragLocation.INVALID || dragLocation === IconGrid.DragLocation.ON_ICON) { this._removeDelayedMove();