Open-source project
RamonUnch/AltSnap avatar
RamonUnch/AltSnap

AltSnap: Alt-click window snapping without injecting code into your apps

Maintained continuation of Stefan Sundin's AltDrag

5,394 stars180 forksCGPL-3.0

At a glance

What is it?
AltSnap is a C fork of Stefan Sundin's AltDrag that moves and resizes windows with an Alt and a click, built around the decision to inject nothing into other applications. This looks at that design choice, the build matrix, and what the fork removed or added.
Who is it for?
AltSnap suits Windows users who want Alt-click window moving and resizing without a helper injecting code into every process, and who are willing to read the changelog because the linked AltDrag documentation is only partially accurate for the fork. It is a worse fit if you need the snap while drag normally feature that AltDrag offered through DLL hooks, or focus on typing, both of which the fork removed.
Can I use it commercially?
Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
Is it still maintained?
Yes. The repository last received commits 10 days ago.
What is it written in?
Mainly C, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 15, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • RamonUnch/AltSnap5,394 ★ · +154
Star history
Repository2026-09-232026-11-15
RamonUnch/AltSnap5.2k5.4k

154 Stars in the last 53 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Alt-click anywhere on a window, no precise targeting

AltSnap lets you move and resize windows by pressing the Alt key and clicking anywhere on a window, rather than relying on very precise clicking on a title bar or a screen edge. The author notes this behavior is very common on Linux distributions and is not actually hard to implement on Windows. It is a fork of Stefan Sundin's AltDrag, and the fork's stated goal is to keep a version up to date with a minimal amount of bugs while still being feature-rich. The window logic is written in C, with files like snap.c for the snapping rules, zones.c for screen regions, config.c for settings, and hooks.c and thunks.c for the low level window plumbing. tray.c handles the icon in the system tray. The practical upside is that the hotkey model matches what you would meet on a Linux desktop, so muscle memory carries straight over.

Nothing gets injected into other applications

The security story is the fork's headline difference. AltDrag carried a Hooks windows feature that let windows snap while you dragged them normally, but it worked by injecting a DLL into every application. The AltSnap author removed it, citing the obvious security risk of injecting code into every running program and the fact that it forced both a 32-bit and a 64-bit version of AltSnap to run at the same time. This version injects nothing into other applications, which means you do not have to worry whether you have a 32-bit or a 64-bit operating system, and only one copy of the program is running. The tradeoff is losing the snap while you drag normally. For a window utility that sits in the background all day, refusing to inject code into every process is a defensible line, and it is the main reason to pick this fork over the original.

Focus on typing removed, Maximize added, blacklists widened

Beyond the injection change, the fork trims and extends the AltDrag feature set. Focus on typing was disabled, because the author found it too much unusable to even start testing. Around that removal, the fork adds options: transparent windows dragging, a Maximize action, pause process options, and more blacklists for finer control over which windows AltSnap grabs. The source code is described as much simpler as a result of the removals. The author also says this version fixed a ton of undesired behavior and bugs carried over from the original AltDrag. Many of the new behaviors are visible in the option dialog box, though some are only reachable by editing the configuration file directly.

Eight make targets across one C codebase

AltSnap is plain C and builds with gcc plus MinGW-w64. The author uses TDM-gcc 10.3 based on MinGW64, and you can also use GCC from winlibs.com. Running make with no argument targets an i386 Win32 build, and the repository ships a family of Makefiles that swap the compiler, architecture, and debug flags. Separate files cover an i386 debug build, an x86_64 build, an x86_64 debug build, an LLVM Clang build, and a tcc build using Bellard's tiny C compiler. There is also an ARM64 Windows target that runs inside Docker, documented in BUILD_ARM64.md, and a batch script for Microsoft Visual Studio using CL.EXE. For Visual Studio you can set up a console environment with the VsDevCmd.bat command and its -arch and -host_arch parameters. Pick the target that matches your toolchain and architecture before you build.

code
make
make -fMakefiledb
make -fMakefileX64
make -fMakefileX64db
make -fMakefileClang
make -fMakefileTCC
make -fMakefileARM64Docker
mkmsvc.bat

The SecureAge APEX alert is a documented false positive

Antivirus software flags AltSnap, and the author addresses this head on. With recent builds you will see alerts, usually from SecureAge APEX and sometimes from other vendors. The author states that these are false positives. He says he reduced the number of them significantly, simply by changing build flags and by switching to an older version of the NSIS installer system, and he describes this as an indication of the impertinence of some modern antivirus solutions. He also stopped contacting the APEX team for every release because it was a waste of time he would rather spend improving the program. For context, he notes that Chocolatey considers up to five positives on VirusTotal to be not even suspicious. That does not make every alert harmless, but it explains why a clean source project still trips scanners.

Deeper options live in AltSnap.ini, one middle click away

Some of AltSnap's behavior is configured in a file rather than the dialog. Middle clicking the tray icon opens the AltSnap.ini file, where options that do not appear in the option dialog box can be edited directly. That splits configuration across two places, which is a real usability wrinkle: a setting you cannot find in the dialog may still be adjustable in the file. The source tree is organized as plain C files rather than a framework, including snap.c, zones.c, config.c, hooks.c and hooks.h, tray.c, languages.c, and a header called unfuck.h. Resources and packaging live alongside them, with altsnap.rc, window.rc, an NSIS installer script altsnap.nsi, theme and language folders, and batch scripts for building and zipping releases. The wiki hosted on the GitHub repository holds the current documentation.

Oriented NT4 to 11, but tested mainly on XP and 10

AltSnap is oriented toward all Windows users from Windows NT 4 through Windows 11, but the author is upfront that it is mostly tested on Windows XP and Windows 10. That gap between the claimed range and the tested range is worth keeping in mind before you rely on it on an older machine. The original AltDrag documentation is still linked, and the author warns that it is not 100% accurate because AltSnap is a fork, so it should be read with that caveat. The fix is to read the changelog for more details on what a given build actually changed. The project is alive: the fork's last push was dated 2026-11-01, and recent releases include 1.68 in July 2026, 1.67 in November 2025, and 1.66 in September 2025. Release timing is irregular, but the repository is not abandoned.

Editorial conclusion

AltSnap suits Windows users who want Alt-click window moving and resizing without a helper injecting code into every process, and who are willing to read the changelog because the linked AltDrag documentation is only partially accurate for the fork. It is a worse fit if you need the snap while drag normally feature that AltDrag offered through DLL hooks, or focus on typing, both of which the fork removed. Before installing, know which Windows version you are on, since the program is tested mainly on XP and 10 despite claiming support from NT 4 to 11, and expect antivirus alerts from SecureAge APEX that the author calls false positives. For a source build, pick the make target that matches your compiler and architecture.

Frequently asked questions

What is Alt snap?

AltSnap is a Windows utility, written in C, that moves and resizes windows using the Alt key and a click anywhere on the window instead of very precise clicking. It is a fork of Stefan Sundin's AltDrag, licensed GPL-3.0, and it injects nothing into other applications.

how to use altsnap

Hold the Alt key and click anywhere on a window to move or resize it. Many options live in the option dialog box, and the ones that do not appear there can be edited in the AltSnap.ini file, which you open by middle clicking the tray icon.

how to install altsnap

AltSnap is plain C and builds from source with gcc plus MinGW-w64. Running make produces an i386 Win32 build, and separate Makefiles target x86_64, debug, LLVM Clang, tcc, and an ARM64 build inside Docker, while mkmsvc.bat handles Microsoft Visual Studio. The author uses TDM-gcc 10.3, and you can also use GCC from winlibs.com.

is altsnap safe

The fork injects no DLL into other applications, which was the main security concern with the original AltDrag Hooks windows feature. The project does get antivirus alerts, usually from SecureAge APEX, which the author states are false positives and says he reduced by changing build flags and using an older NSIS installer. Chocolatey considers up to five VirusTotal positives not suspicious.

altsnap vs altdrag

AltSnap is a fork of Stefan Sundin's AltDrag with a simpler source tree. It removes the Hooks windows feature, which injected a DLL into every application and forced 32-bit and 64-bit copies to run together, and disables focus on typing. It adds transparent windows dragging, a Maximize action, pause process options, and more blacklists, and claims to fix many bugs from the original.

Official sources

  1. Issues
  2. License: GPL-3.0
  3. RamonUnch/AltSnap on GitHub
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/ramonunch-altsnap.svg)](https://hysenlabs.com/projects/ramonunch-altsnap)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/ramonunch-altsnap.svg)](https://hysenlabs.com/projects/ramonunch-altsnap)

Was this useful?