Virtual Desktop Swipe Taskbar Fix
Restores taskbar presence in virtual desktop swipe previews.
Author: meteoni
Restores the missing incoming taskbar bitmap during a touchpad virtual desktop swipe
on Windows 11.
The issue
Limitation
While a swipe is held, both previews can show the current desktop's taskbar
buttons, instead of reflecting the incoming taskbar's current state. This is
because Windows has not yet committed the switch during a swipe gesture, and
thumbnails taken at that time inevitably look the same as on the outgoing
desktop.
Keyboard switching avoids this because it freezes the outgoing taskbar preview
and updates the actual taskbar during the transition, allowing the live incoming
preview to show the destination desktop's buttons.
ARM64 is not supported: native methods are resolved through symbols, but internal
member offsets are discovered from those methods at initialization. Initialization
stops if the required symbols or layout cannot be recognized.