Edge No Bleed
Eliminates 1-2px screen edge gaps where desktop wallpaper bleeds behind maximized windows.
Author: Dev-StudioCode
Eliminates the persistent 1-2px margin gap where desktop wallpaper bleeds through along screen edges behind maximized windows.
The Problem
On Windows 10 and 11, users running dark-mode themes, IDEs, terminals, and browsers frequently notice a razor-thin 1-2px strip of desktop wallpaper leaking through along the edges of maximized windows (especially at the bottom or side monitor borders).
Why This Happens
- DWM Frame Padding & Fractional DPI Rounding: Windows calculates maximized client coordinates by converting logical device-independent units into physical screen pixels. At fractional display scaling factors (such as 125%, 150%, or 175%), rounding calculations frequently leave a 1-2 physical pixel deficit against the work area, exposing bright desktop wallpaper pixels.
- Invisible Margin Bounds: Normal Win32 maximized frames hang invisible resize margins off-screen, but custom-chrome and modern applications (such as Chromium, Electron, and Windows Terminal) size their own frames and can fall short of physical display boundaries.
How It Works
Edge No Bleed runs as a dedicated tool mod within Windhawk without injecting invasive hooks into third-party processes. It monitors window position and state changes via out-of-context WinEvents on a dedicated message-loop worker thread:
- When a window is maximized, the mod measures its true visible frame bounds using
DwmGetWindowAttribute(DWMWA_EXTENDED_FRAME_BOUNDS) against the monitor's work area (MONITORINFO::rcWork).
- If a 1-2px fractional rounding gap is detected, the mod expands the window frame via
SetWindowPos by the exact measured discrepancy, sealing the edge flush against the screen.
- If an auto-hide taskbar is active on that edge, the mod detects it via
SHAppBarMessage(ABM_GETAUTOHIDEBAREX) and preserves the 1px mouse-hover reveal strip.
Comparison With Other Mods
- Maximized Window Margins: That mod intentionally adds large margins (10px to 200px, macOS-style) by shrinking the system work area with AppBars.
Edge No Bleed does the opposite: it eliminates unwanted 1-2px fractional DPI gaps so maximized windows sit completely flush.
- Classic Maximized Windows Fix: That mod is exclusively designed for the legacy Classic 3D Theme on Windows 10/11 using region clipping (
SetWindowRgn). Edge No Bleed targets standard modern DWM themes and dark-mode setups.