How anishnimma/tabswipe works
TabSwipe is a Windows utility for switching between adjacent application windows with a three-finger precision-touchpad swipe. Its main workflow monitors touchpad input, resolves current and neighboring windows, presents captured window images in a DirectComposition overlay, then commits the switch or animates back on release. The tray menu also manages startup and exit. The graph includes the documented capture/rendering capabilities; some internal wiring is supported only by declarations or the README because not all implementation excerpts were provided.
Main entry points: TouchpadGestureMonitor.cpp Gesture monitor · App.cpp App and message loop · OverlayRenderer.cpp Overlay renderer · WindowManager.cpp Window selection and commit
Components 11
Application lifecycle
- App and message loop
src/Core/App.cpp
Touchpad input
- Gesture monitor
src/Input/TouchpadGestureMonitor.cpp - Raw touchpad monitor
src/Input/TouchpadMonitor.cpp - Pointer input manager
src/Input/InputManager.cpp - Gesture state machine
src/Gesture/GestureStateMachine.cpp
Window switching
- Window selection and commit
src/Core/WindowManager.cpp - Keyboard emulator
src/Automation/KeyboardEmulator.cpp
Capture and presentation
- Overlay renderer
src/Rendering/OverlayRenderer.cpp - Window capture
src/Capture/WindowCapture.cpp
Other components
- Touchpad user
- Windows desktop
Connections 12
- Touchpad user → Gesture monitor: swipes
README.md - App and message loop → Gesture monitor: initializes
src/Core/App.cpp - App and message loop → Overlay renderer: initializes
src/Core/App.cpp - App and message loop → Gesture monitor: routes input
src/Core/App.cpp - App and message loop → Overlay renderer: ticks animation
src/Core/App.cpp - Gesture monitor → Window selection and commit: resolves windows
- Gesture monitor → Overlay renderer: controls gesture
- Window selection and commit → Windows desktop: enumerates and activates
src/Core/WindowManager.cpp - Overlay renderer → Window capture: owns captures
- Window capture → Windows desktop: captures frames
README.md - Pointer input manager → Gesture state machine: provides swipe updates
- Keyboard emulator → Windows desktop: emulates shortcuts