Fix testModifierOnlyShortcut
If a window is destroyed before the frame is presented, the window pointer will be dangling.
In order to make kwin handle that case correctly, the window is captured using a QPointer.
If a window is destroyed before the frame is presented, the window pointer will be dangling.
In order to make kwin handle that case correctly, the window is captured using a QPointer.