Skip to content

Fix animation bug when dragging window from second monitor

Fixes #3547 (closed).

I logged the stack trace from removeWindow() and it seems that when you move the window from the second monitor to another workspace like shown in #3547 (closed), removeWindow() is called twice for it, presumably once for the second monitor workspace, and then once for the first monitor workspace for some reason. It is during that call that _windowSlots doesn't contain the window, so instead the last element (index -1) is removed, leading to the animation bug.

Merge request reports