How nuxil/alttabmod works
AltTabMod is a small Windows utility that relocates the Alt+Tab switcher and selected application to the monitor under the mouse. The README documents Explorer event hooks and the movement rules; the sampled C excerpts show monitor detection, event callbacks, and window positioning. The excerpts are partial, so startup and callback wiring beyond those documented behaviors is summarized rather than expanded into unsupported details.
Main entry points: main.c Window event handling
Components 10
Startup and hooks
- Program startup
main.c - Event hooks
main.c - Window event handling
main.c
Monitor targeting
- Monitor detection
main.c - Mouse monitor selection
main.c
Window relocation
- Switcher positioning
main.c - Selected app positioning
main.c
Other components
- User
- Windows APIs
- Explorer shell
Connections 12
- User → Explorer shell: presses Alt+Tab
- Program startup → Windows APIs: enumerates monitors
- Program startup → Event hooks: initializes hooks
- Event hooks → Explorer shell: hooks events
- Explorer shell → Window event handling: dispatches events
- Window event handling → Monitor detection: queries displays
- Monitor detection → Windows APIs: reads cursor and displays
- Window event handling → Mouse monitor selection: selects target
- Window event handling → Switcher positioning: handles switcher events
- Window event handling → Selected app positioning: handles switch events
- Switcher positioning → Windows APIs: positions window
- Selected app positioning → Windows APIs: moves selected window