Double-Click Window Edge to Maximize Width
Double-click the left/right window edge to maximize the width (a corner maximizes both axes); the top/bottom edge keeps Windows' built-in vertical maximize
Author: Hamid
Double-click on a window's border to resize it along one axis, without
affecting the other:
- Left or right edge -> maximizes the width (height stays unchanged).
Double-click the same edge again to restore the previous width.
- Top or bottom edge -> handled by Windows' own built-in vertical
maximize/restore toggle (unchanged by this mod).
- A corner -> maximizes both width and height together. Double-click
the same corner again to restore the previous size.
This adds a horizontal counterpart to Windows' existing vertical
double-click-to-maximize behavior, which only covers the top/bottom
edges natively.

Notes
- Applies to all windows (
@include *).
- Only affects resizable windows that are not already maximized or
minimized.
- Apps that implement their own non-client hit testing and never
forward
WM_NCLBUTTONDBLCLK to the default window procedure
(e.g. many Chromium/Electron, WinUI, and Qt frameless windows) are
not affected by this mod, since there's no reliable hook point for
those. This is a limitation of the approach, not a bug.
- Uses the work area (excludes the taskbar) rather than the full
monitor bounds.
دبل كليك على حافة النافذة لتكبير العرض أو الطول
- الحافة اليسرى أو اليمنى -> يكبّر العرض بالكامل (يبقى الطول كما هو). دبل كليك مرة ثانية يرجّع العرض السابق.
- الحافة العلوية أو السفلية -> يُترك سلوك ويندوز الأصلي (تكبير/استعادة الطول) كما هو.
- الزاوية -> يكبّر الاثنين معاً. دبل كليك على نفس الزاوية يرجّع الحجم السابق.