Skip to content

Only show otherScreenThumbnail if we are actually dragging

Marco Martin requested to merge work/mart/otherScreenThumbBackport into Plasma/6.0

otherScreenThumbnail is used to fake a window thumbnail being dragged half in the old screen, half in the "new" one (or even more than two)

right now the condition to use it is purely the "real" thumbnail x or y change, but sometimes especially when the item has just been created and is being laid out it might trigger an itemDraggedOutOfScreen when no-one was dragging.

We should never make otherScreenThumbnail visible when we aren't dragging a thumbnail, so check for Drag being active in the source item.

the item will be kept visible even if drag becomes inactive as before, as it still needs to be visible for the reset animation

BUG:480564

Merge request reports