Published on the Windhawk Marketplace via ramensoftware/windhawk-mods#7733.
A comprehensive solution engineered to eliminate black screen flicker during 3- and 4-finger touchpad transitions on Windows 11 by pre-rendering and caching distinct wallpapers directly inside Desktop Window Manager (DWM).
Under Windows 11, the Desktop Window Manager (DWM) performs real-time interactive sliding animations when switching virtual workspaces via trackpad gestures (such as 3- or 4-finger horizontal swipes). However, when wallpapers are applied globally or switched after the transition event occurs, the incoming virtual desktop displays an unrendered black or blank screen during the swipe.
Project FluxDesk eliminates this latency by pre-registering unique wallpapers for each virtual workspace directly through Windows internal Shell COM interfaces (IVirtualDesktopManagerInternal::SetDesktopWallpaper).
This repository provides two distinct, production-ready implementations tailored to different deployment needs:
/desktop-app: Standalone, zero-dependency C# / WPF desktop application featuring an interactive Fluent dark dashboard, real-time desktop preview cards, system tray integration, and an automatic slideshow engine./windhawk-mod: Isolated native C++20 Tool Mod (windhawk.exe) via Windhawk with zero Explorer function hooks, resilientTaskbarCreatedCOM recovery, and native DWM wallpaper preloading.
FluxDesk/
├── assets/ # Project screenshots and preview media
├── desktop-app/ # Standalone C# .NET Desktop Application
│ ├── src/ # WPF UI, Win32 COM Interop, Slideshow Engine, Config Manager
│ ├── build.bat # 1-second standalone build script using native csc.exe
│ ├── FluxDesk.exe # Pre-compiled standalone binary (47 KB, zero dependencies)
│ ├── README.md # Desktop app technical documentation
│ └── LICENSE # MIT License
│
├── windhawk-mod/ # Native C++ Windhawk Tool Mod (windhawk.exe)
│ ├── virtual-desktop-wallpaper-switch.wh.cpp # Complete Windhawk mod source code
│ ├── windhawk_api.h # Windhawk API reference header
│ ├── README.md # Windhawk mod architecture & compilation guide
│ └── LICENSE # MIT License
│
├── LICENSE # Root MIT License covering the entire repository
└── README.md # Project Overview & Architecture Guide
| Dimension | Desktop Application (/desktop-app) |
Windhawk Mod (/windhawk-mod) |
|---|---|---|
| Language | C# (WPF / .NET Framework 4.8) | C++20 (MinGW / Clang via Windhawk) |
| Execution Domain | Standalone user-space process (.exe) |
Dedicated tool mod process (windhawk.exe) |
| User Interface | Interactive Fluent Dark Window + Tray | Native Windhawk Mod Settings UI |
| Event Detection | COM service queries & timer polling | Cross-process IVirtualDesktopNotification sink (zero hooks) |
| Memory Footprint | ~35 MB (CLR + UI thread) | < 2 MB (isolated windhawk.exe tool process) |
| Touchpad Gestures | Preloaded via external COM calls | Native Windows 11 24H2+ DWM preloading |
| Best For | Visual management, thumbnail previews, manual controls | Zero-overhead, permanent Windows integration |
The desktop app requires no installation or external runtimes:
cd desktop-app
build.bat
FluxDesk.exe- Install Windhawk (v1.4+).
- Enable Developer mode (
Optionsmenu -> Advanced Settings -> Developer channel). - Click "New mod", paste the code from
windhawk-mod/virtual-desktop-wallpaper-switch.wh.cpp, and click "Compile Mod". - Configure your wallpapers and slideshow options directly in the mod's Settings tab.
If you run Wallpaper Engine alongside FluxDesk:
- Wallpaper Engine renders exclusively to the active foreground desktop layer. During a 4-finger touchpad swipe, Windows DWM animates the underlying native shell wallpapers.
- To prevent Wallpaper Engine from overriding native virtual desktop textures:
- Open Wallpaper Engine Settings.
- Navigate to General -> Windows.
- Uncheck
Override wallpaper image.
- This enables Wallpaper Engine on your active workspace while allowing FluxDesk to keep all adjacent virtual desktop backgrounds permanently pre-rendered and tear-free.
Both implementations are licensed under the MIT License:
- Desktop Application: Allows unrestricted commercial and personal usage, modification, and portfolio demonstration.
- Windhawk Mod: Complies with the official Windhawk Mods Repository requirement that all community submissions adopt the MIT License.
