Compiz Desktop Cube for Windows 11
Compiz/GNOME style 3D glass desktop prism for virtual desktops. Drag up from the taskbar to open it, turn it to switch desktops, right-click the screen edges to add or remove desktops. Live desktop, blurred background.
Author: Soham

A Compiz / GNOME style 3D desktop prism for Windows 11 virtual desktops.
Built on Windows.UI.Composition + Direct2D with a GPU blurred background.
How to use
- Press and hold the left mouse button on empty space of the taskbar
(works with an auto-hide taskbar too).
- Drag upward. The desktop shrinks gradually into the cube.
- Keep holding and drag left / right to turn it. After a moment up / down tilts it.
- Mouse wheel zooms the cube in and out (scroll up = closer, scroll down = farther).
(Optional: set "Mouse Wheel Action" to the window switcher to get the Alt+Tab style window cycling instead.)
- Add / remove desktops: while the cube is open, right-click the right edge of the screen to add a desktop (+1) or
right-click the left edge to remove one (-1). The frosted gray zones are hidden by default: move the pointer to the far left or
far right edge and the matching zone (a - or a +) slides in. It stays while the pointer is inside it, flashes when
you use it and hides again. "-" closes the LAST desktop (its windows move to the previous one). The cube rebuilds itself
with a little spin and the new face fades in.
- Release. The cube snaps to the nearest face and switches desktop.
A quick flick also switches. Press Escape to cancel.
Faces follow your desktop count
- 1 desktop: a single face with limited rotation.
- 2 desktops: two faces (a flip card).
- 3, 4, 5, 6 desktops: triangle, cube, pentagon, hexagon.
- More than 6 desktops: hexagon, faces are re-mapped while you turn it, so every desktop is reachable.
Live desktop
- The desktop you are on is streamed LIVE (Desktop Duplication) into the front face
and into the blurred background. A video that is playing keeps playing, blurred
behind the cube and sharp on the face while it turns.
- The cube overlay is excluded from capture, so it never shows up inside itself.
- Desktops you are not on are rebuilt from your wallpaper plus a capture of each of
their windows (PrintWindow). Windows that cannot be captured are simply left out
(no more black placeholder cards). Those faces cannot be live, Windows does not
render apps of other virtual desktops.
- If Desktop Duplication is not available (some hybrid GPU laptops), a slower GDI
live capture is used automatically.
Smoothness
- Persistent render thread, devices stay warm between gestures (pre-warmed as soon as you press the taskbar).
- Mouse input is read on the render thread, not on the busy taskbar thread.
- Rendering is locked to the monitor's vertical blank, so it follows 60 / 120 / 144 / 240 Hz by itself. All motion is time based.
- Live frames are presented without ever blocking the render thread, so a busy GPU can no longer make the cube miss a refresh.
- Power: no permanent 1 ms timer, normal-ish thread priorities, the blurred background refreshes at a low rate, and while the cube is held still the render loop drops to about 30 Hz (it jumps back to full refresh the instant you move the mouse).
- Turn on "Enable Diagnostic Logging" to see the measured fps and the monitor Hz in the Windhawk log.
Notes
- The real taskbar is hidden from the capture, so every face is the full, uncropped desktop (wallpaper where the taskbar was). The taskbar is restored the moment the gesture ends. If Windows refuses to hide it, the old crop is used as a fallback.
- Window switcher: every window becomes a live thumbnail card (the selected one is refreshed every frame, the others a few times per second). It shows what is visible on screen, so a part hidden behind another window shows that other window.
- The GPU device is created on the graphics adapter that drives your monitor, so screen capture stays on the fast path.
- PrintWindow cannot render every app (some games, protected content). Those windows are left out of other desktops' faces.
- The overlay is hidden from screenshots and screen recorders on purpose (needed for the live capture).
- Desktop switching sends Win+Ctrl+Left/Right. No undocumented COM is used.
- Screen recording: turn on "Screen Recording Mode" in the mod settings to make the cube visible to recorders (it applies the next time you open the cube). The front face is a still picture while it is on.
- The Windows desktop slide animation is hidden only while the cube switches desktops (explorer is told "animations off" for that moment). Your Windows "Animation effects" setting is never changed.
- If you still see a slide on your build, raise "Switch Settle Delay".