Keep Windows Clear of Taskbar
Keeps normal app windows from opening, restoring or being dragged under the taskbar, on any screen edge
Author: Goobis
Keep Windows Clear of Taskbar v1.0.0 by Goobis
AI was used to help develop this application
Support on Ko-fi
Windows lets app windows open, restore or be dragged so they end up under the
taskbar. This mod keeps every normal window (one with a title bar and a sizing
border) clear of the taskbar, whichever screen edge the taskbar is on: bottom,
top, left or right. A window is corrected when:
- it opens,
- you restore it from maximized,
- an app moves or resizes it,
- you finish dragging or resizing it (can be turned off in Settings).
Windows that are already open are checked too: when the mod starts, and again
whenever the taskbar or the display layout changes (for example when you move
or resize the taskbar, or change resolution or monitors). An auto-hide taskbar
sliding in and out doesn't count, so it never shuffles your windows around.
If a window fits, it is moved just far enough to clear the taskbar. If it is too
big to fit between the taskbar and the opposite screen edge, it is shrunk to
fit; if the app refuses to get that small, it is lined up with the edge next to
the taskbar instead.
Left alone: maximized and fullscreen windows, minimized windows, tool windows,
always-on-top windows, menus, tooltips, windows you have placed across two
monitors, and screen edges without a taskbar or other reserved screen space
(you can still park a window partly off-screen there). Space reserved by docks,
app bars or mods such as Maximized Window Margins counts as reserved too, so
windows are kept clear of it as well.
Relation to Taskbar Top Window Guard
Taskbar Top Window Guard solves the same problem for a taskbar at the top of the
screen, and adds optional centering of new windows. This mod covers any taskbar
edge, including the bottom, and does not center windows. With a top taskbar,
both mods correct the same windows, so Taskbar Top Window Guard is only worth
adding alongside this one for its centering.
How it works
The mod runs as a Windhawk tool mod in its own windhawk.exe process. It listens
to the window events Windows already broadcasts to accessibility tools and moves
offending windows asynchronously, so a hung app can never block it. It doesn't
load into, hook or subclass any other process, so it can't crash other apps or
Explorer. If an app keeps fighting the correction, the mod backs off from that
window.
The mod measures where the taskbar actually is, so it also works when another
mod (such as Taskbar auto-hide when maximized) puts the taskbar in auto-hide mode
but keeps it visible.
You may see a window appear at its old size for a split second before it jumps
into place. That is expected: the correction happens right after Windows moves
the window.
Apps running as administrator can't be moved by a normal process, so their
windows are not corrected.