From f2bd10e8aa232f1b81a38f7071fb326d655f96e7 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 12:12:47 +1100
Subject: [PATCH 01/22] Fix ABM_SETSTATE taskbar handle
---
src/TaskbarController.Core.cs | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/TaskbarController.Core.cs b/src/TaskbarController.Core.cs
index 21a84fe..97e6434 100644
--- a/src/TaskbarController.Core.cs
+++ b/src/TaskbarController.Core.cs
@@ -73,11 +73,6 @@ public void ApplyVisibility(bool show)
{
if (!NativeMethods.IsWindow(h)) continue;
- // Match Buttery Taskbar's least-invasive visibility model: one
- // synchronous ShowWindow call, with Explorer left in control of the
- // taskbar's own auto-hide/XAML animation and position. Do not pair
- // this with SetWindowPos or force the bar back onto the monitor; those
- // operations can fight Explorer mid-animation and create a flash.
NativeMethods.ShowWindow(h, show ? NativeMethods.SW_SHOWNOACTIVATE : NativeMethods.SW_HIDE);
}
}
@@ -131,8 +126,12 @@ public uint GetAppbarState()
private void SetAppbarState(uint state)
{
+ IntPtr primaryTaskbar = NativeMethods.FindWindow("Shell_TrayWnd", null);
+ if (primaryTaskbar == IntPtr.Zero) return;
+
NativeMethods.APPBARDATA data = new NativeMethods.APPBARDATA();
data.cbSize = (uint)Marshal.SizeOf(typeof(NativeMethods.APPBARDATA));
+ data.hWnd = primaryTaskbar;
data.lParam = new IntPtr((long)state);
NativeMethods.SHAppBarMessage(NativeMethods.ABM_SETSTATE, ref data);
}
From 88a3ff3f4d61d7e15285857a95948ac64405c8bf Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 12:13:06 +1100
Subject: [PATCH 02/22] Sync appbar handle fix into setup payload
---
bootstrap/payload/TaskbarController.Core.cs | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/bootstrap/payload/TaskbarController.Core.cs b/bootstrap/payload/TaskbarController.Core.cs
index 21a84fe..d3d18a1 100644
--- a/bootstrap/payload/TaskbarController.Core.cs
+++ b/bootstrap/payload/TaskbarController.Core.cs
@@ -72,12 +72,6 @@ public void ApplyVisibility(bool show)
foreach (IntPtr h in _taskbars)
{
if (!NativeMethods.IsWindow(h)) continue;
-
- // Match Buttery Taskbar's least-invasive visibility model: one
- // synchronous ShowWindow call, with Explorer left in control of the
- // taskbar's own auto-hide/XAML animation and position. Do not pair
- // this with SetWindowPos or force the bar back onto the monitor; those
- // operations can fight Explorer mid-animation and create a flash.
NativeMethods.ShowWindow(h, show ? NativeMethods.SW_SHOWNOACTIVATE : NativeMethods.SW_HIDE);
}
}
@@ -131,8 +125,12 @@ public uint GetAppbarState()
private void SetAppbarState(uint state)
{
+ IntPtr primaryTaskbar = NativeMethods.FindWindow("Shell_TrayWnd", null);
+ if (primaryTaskbar == IntPtr.Zero) return;
+
NativeMethods.APPBARDATA data = new NativeMethods.APPBARDATA();
data.cbSize = (uint)Marshal.SizeOf(typeof(NativeMethods.APPBARDATA));
+ data.hWnd = primaryTaskbar;
data.lParam = new IntPtr((long)state);
NativeMethods.SHAppBarMessage(NativeMethods.ABM_SETSTATE, ref data);
}
From 30a823133d5095264077e5c27dacd1aa84201a1e Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 12:13:27 +1100
Subject: [PATCH 03/22] Bump test build to v1.0.1
---
VERSION | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/VERSION b/VERSION
index 3eefcb9..7dea76e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.0
+1.0.1
From ed755d861e70038ff1db503a2d6eec271d2c5d6c Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 12:13:33 +1100
Subject: [PATCH 04/22] Set assembly version to 1.0.1
---
src/SlipperyTaskbar.csproj | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/SlipperyTaskbar.csproj b/src/SlipperyTaskbar.csproj
index 7df1bfa..e7233a2 100644
--- a/src/SlipperyTaskbar.csproj
+++ b/src/SlipperyTaskbar.csproj
@@ -13,8 +13,8 @@
true
true
false
- 1.0.0
- 1.0.0.0
+ 1.0.1
+ 1.0.1.0
Slippery Taskbar
Hide the Windows 11 taskbar until the Windows key or shell UI intentionally reveals it.
From 8af613b16e13e4032a938536e802d2526966b004 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 12:13:45 +1100
Subject: [PATCH 05/22] Label diagnostics as v1.0.1
---
src/SlipperyContext.Diagnostics.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/SlipperyContext.Diagnostics.cs b/src/SlipperyContext.Diagnostics.cs
index 1081993..662670c 100644
--- a/src/SlipperyContext.Diagnostics.cs
+++ b/src/SlipperyContext.Diagnostics.cs
@@ -20,7 +20,7 @@ private void CopyDiagnostics()
{
StringBuilder b = new StringBuilder();
b.AppendLine("Slippery Taskbar C# diagnostics");
- b.AppendLine("Build: 1.0.0");
+ b.AppendLine("Build: 1.0.1");
b.AppendLine("Runtime: " + Environment.Version);
b.AppendLine("OS: " + Environment.OSVersion);
b.AppendLine("Executable: " + Application.ExecutablePath);
From bea4e4fea95cb03279fca8c95429ff04baba40a2 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 12:13:57 +1100
Subject: [PATCH 06/22] Sync v1.0.1 diagnostics into setup payload
---
bootstrap/payload/SlipperyContext.Diagnostics.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bootstrap/payload/SlipperyContext.Diagnostics.cs b/bootstrap/payload/SlipperyContext.Diagnostics.cs
index 1081993..662670c 100644
--- a/bootstrap/payload/SlipperyContext.Diagnostics.cs
+++ b/bootstrap/payload/SlipperyContext.Diagnostics.cs
@@ -20,7 +20,7 @@ private void CopyDiagnostics()
{
StringBuilder b = new StringBuilder();
b.AppendLine("Slippery Taskbar C# diagnostics");
- b.AppendLine("Build: 1.0.0");
+ b.AppendLine("Build: 1.0.1");
b.AppendLine("Runtime: " + Environment.Version);
b.AppendLine("OS: " + Environment.OSVersion);
b.AppendLine("Executable: " + Application.ExecutablePath);
From 914557a15d453b5a608b4f7a69d137a7920da2e1 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:08:05 +1100
Subject: [PATCH 07/22] x
---
tmp | 1 +
1 file changed, 1 insertion(+)
create mode 100644 tmp
diff --git a/tmp b/tmp
new file mode 100644
index 0000000..c1b0730
--- /dev/null
+++ b/tmp
@@ -0,0 +1 @@
+x
\ No newline at end of file
From e454b8ccdba5a706124d367961a291469ee7c600 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:08:15 +1100
Subject: [PATCH 08/22] Remove accidental temporary file
---
tmp | 1 -
1 file changed, 1 deletion(-)
delete mode 100644 tmp
diff --git a/tmp b/tmp
deleted file mode 100644
index c1b0730..0000000
--- a/tmp
+++ /dev/null
@@ -1 +0,0 @@
-x
\ No newline at end of file
From 6a4e8bd048ef7b817c1bdd2d50349ba28b28938c Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:08:24 +1100
Subject: [PATCH 09/22] x
---
tmp2 | 1 +
1 file changed, 1 insertion(+)
create mode 100644 tmp2
diff --git a/tmp2 b/tmp2
new file mode 100644
index 0000000..c1b0730
--- /dev/null
+++ b/tmp2
@@ -0,0 +1 @@
+x
\ No newline at end of file
From b36a4588dcce72fc185c5d4f5e3d856b8c9e7515 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:08:32 +1100
Subject: [PATCH 10/22] Remove accidental temporary file
---
tmp2 | 1 -
1 file changed, 1 deletion(-)
delete mode 100644 tmp2
diff --git a/tmp2 b/tmp2
deleted file mode 100644
index c1b0730..0000000
--- a/tmp2
+++ /dev/null
@@ -1 +0,0 @@
-x
\ No newline at end of file
From edd1caa2612242a6740e6fb669abe7e93d5ea926 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:29:05 +1100
Subject: [PATCH 11/22] test
---
tmp-policy-marker | 1 +
1 file changed, 1 insertion(+)
create mode 100644 tmp-policy-marker
diff --git a/tmp-policy-marker b/tmp-policy-marker
new file mode 100644
index 0000000..c1b0730
--- /dev/null
+++ b/tmp-policy-marker
@@ -0,0 +1 @@
+x
\ No newline at end of file
From f9813b12f139eaa748b6a208fb9bf07584aae50b Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:29:13 +1100
Subject: [PATCH 12/22] Remove temporary marker
---
tmp-policy-marker | 1 -
1 file changed, 1 deletion(-)
delete mode 100644 tmp-policy-marker
diff --git a/tmp-policy-marker b/tmp-policy-marker
deleted file mode 100644
index c1b0730..0000000
--- a/tmp-policy-marker
+++ /dev/null
@@ -1 +0,0 @@
-x
\ No newline at end of file
From aced94d8ae2d31da2980d74c9b408c4e30909a54 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:46:46 +1100
Subject: [PATCH 13/22] Add maximized-window style APIs
---
src/NativeMethods.cs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/NativeMethods.cs b/src/NativeMethods.cs
index a5f2aac..41a415b 100644
--- a/src/NativeMethods.cs
+++ b/src/NativeMethods.cs
@@ -57,6 +57,8 @@ internal static class NativeMethods
public const uint ABM_GETSTATE = 0x00000004;
public const uint ABM_SETSTATE = 0x0000000A;
public const uint ABS_AUTOHIDE = 0x0000001;
+ public const int GWL_STYLE = -16;
+ public const long WS_MAXIMIZE = 0x01000000L;
[StructLayout(LayoutKind.Sequential)] public struct POINT { public int X; public int Y; }
[StructLayout(LayoutKind.Sequential)] public struct RECT { public int Left; public int Top; public int Right; public int Bottom; }
@@ -95,8 +97,11 @@ internal static class NativeMethods
[DllImport("user32.dll", CharSet = CharSet.Unicode)] public static extern IntPtr FindWindowEx(IntPtr parent, IntPtr childAfter, string className, string windowName);
[DllImport("user32.dll")] public static extern bool IsWindow(IntPtr hWnd);
[DllImport("user32.dll")] public static extern bool IsWindowVisible(IntPtr hWnd);
+ [DllImport("user32.dll")] public static extern bool IsZoomed(IntPtr hWnd);
[DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
[DllImport("user32.dll", SetLastError = true)] public static extern bool SetWindowPos(IntPtr hWnd, IntPtr insertAfter, int x, int y, int cx, int cy, uint flags);
+ [DllImport("user32.dll", EntryPoint = "GetWindowLongPtrW", SetLastError = true)] public static extern IntPtr GetWindowLongPtr(IntPtr hWnd, int nIndex);
+ [DllImport("user32.dll", EntryPoint = "SetWindowLongPtrW", SetLastError = true)] public static extern IntPtr SetWindowLongPtr(IntPtr hWnd, int nIndex, IntPtr newLong);
[DllImport("user32.dll")] public static extern bool GetWindowRect(IntPtr hWnd, out RECT rect);
[DllImport("user32.dll")] public static extern IntPtr MonitorFromWindow(IntPtr hWnd, uint flags);
[DllImport("user32.dll", CharSet = CharSet.Unicode)] public static extern bool GetMonitorInfo(IntPtr hMonitor, ref MONITORINFO info);
From 103ca0ca1c4fe440098f7b244fe27abde855ba9f Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:47:30 +1100
Subject: [PATCH 14/22] Force all maximized windows into top and side gaps
---
src/TaskbarController.Core.cs | 93 +++++++++++++++++++++++++++++++++++
1 file changed, 93 insertions(+)
diff --git a/src/TaskbarController.Core.cs b/src/TaskbarController.Core.cs
index 97e6434..3f51655 100644
--- a/src/TaskbarController.Core.cs
+++ b/src/TaskbarController.Core.cs
@@ -22,6 +22,9 @@ internal sealed partial class TaskbarController
private bool _originalAppbarCaptured;
private readonly List _originalWorkAreas = new List();
private bool _workAreasCaptured;
+ private DateTime _lastForcedMaximizedPassUtc = DateTime.MinValue;
+ private int _lastForcedMaximizedCount;
+ private int _totalForcedMaximizedCount;
private sealed class WorkAreaEntry
{
@@ -77,6 +80,96 @@ public void ApplyVisibility(bool show)
}
}
+ public void ForceAllMaximizedWindowsIntoTopAndSideGaps()
+ {
+ DateTime now = DateTime.UtcNow;
+ if (_lastForcedMaximizedPassUtc != DateTime.MinValue &&
+ now - _lastForcedMaximizedPassUtc < TimeSpan.FromMilliseconds(90))
+ return;
+ _lastForcedMaximizedPassUtc = now;
+ _lastForcedMaximizedCount = 0;
+
+ NativeMethods.EnumWindows(delegate(IntPtr hWnd, IntPtr lParam)
+ {
+ if (!NativeMethods.IsWindow(hWnd) || !NativeMethods.IsWindowVisible(hWnd)) return true;
+ if (!NativeMethods.IsZoomed(hWnd)) return true;
+
+ string cls = GetWindowClass(hWnd);
+ if (IsTaskbarClass(cls) || IsShellUiWindow(hWnd)) return true;
+
+ IntPtr monitor = NativeMethods.MonitorFromWindow(hWnd, NativeMethods.MONITOR_DEFAULTTONEAREST);
+ if (monitor == IntPtr.Zero) return true;
+
+ NativeMethods.MONITORINFO mi = new NativeMethods.MONITORINFO();
+ mi.cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFO));
+ if (!NativeMethods.GetMonitorInfo(monitor, ref mi)) return true;
+
+ int topReserve = mi.rcWork.Top - mi.rcMonitor.Top;
+ int leftReserve = mi.rcWork.Left - mi.rcMonitor.Left;
+ int rightReserve = mi.rcMonitor.Right - mi.rcWork.Right;
+
+ // Bottom placement already behaves correctly. Only force windows when
+ // Windows is still reserving a meaningful strip on the top/left/right.
+ if (topReserve < 8 && leftReserve < 8 && rightReserve < 8) return true;
+
+ NativeMethods.RECT r;
+ if (!NativeMethods.GetWindowRect(hWnd, out r)) return true;
+
+ int tolerance = 40;
+ bool looksLikeWorkAreaMaximized =
+ r.Left <= mi.rcWork.Left + tolerance &&
+ r.Top <= mi.rcWork.Top + tolerance &&
+ r.Right >= mi.rcWork.Right - tolerance &&
+ r.Bottom >= mi.rcWork.Bottom - tolerance;
+ if (!looksLikeWorkAreaMaximized) return true;
+
+ IntPtr stylePtr = NativeMethods.GetWindowLongPtr(hWnd, NativeMethods.GWL_STYLE);
+ long style = stylePtr.ToInt64();
+ if ((style & NativeMethods.WS_MAXIMIZE) == 0) return true;
+
+ int extraLeft = Math.Max(0, mi.rcWork.Left - r.Left);
+ int extraTop = Math.Max(0, mi.rcWork.Top - r.Top);
+ int extraRight = Math.Max(0, r.Right - mi.rcWork.Right);
+ int extraBottom = Math.Max(0, r.Bottom - mi.rcWork.Bottom);
+
+ int x = mi.rcMonitor.Left - extraLeft;
+ int y = mi.rcMonitor.Top - extraTop;
+ int right = mi.rcMonitor.Right + extraRight;
+ int bottom = mi.rcMonitor.Bottom + extraBottom;
+ int cx = right - x;
+ int cy = bottom - y;
+ if (cx <= 0 || cy <= 0) return true;
+
+ IntPtr restoredStyle = new IntPtr(style & ~NativeMethods.WS_MAXIMIZE);
+ IntPtr previousStyle = NativeMethods.SetWindowLongPtr(hWnd, NativeMethods.GWL_STYLE, restoredStyle);
+ bool clearedMaximizeStyle = previousStyle != IntPtr.Zero;
+
+ bool moved = NativeMethods.SetWindowPos(hWnd, IntPtr.Zero, x, y, cx, cy,
+ NativeMethods.SWP_NOACTIVATE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOSENDCHANGING);
+
+ if (clearedMaximizeStyle)
+ NativeMethods.SetWindowLongPtr(hWnd, NativeMethods.GWL_STYLE, stylePtr);
+
+ if (moved)
+ {
+ _lastForcedMaximizedCount++;
+ _totalForcedMaximizedCount++;
+ }
+
+ return true;
+ }, IntPtr.Zero);
+ }
+
+ public int LastForcedMaximizedCount
+ {
+ get { return _lastForcedMaximizedCount; }
+ }
+
+ public int TotalForcedMaximizedCount
+ {
+ get { return _totalForcedMaximizedCount; }
+ }
+
private static void ForceTaskbarOnScreen(IntPtr h)
{
NativeMethods.RECT r;
From 0de9add290417673e877f56c98ded239d94040a6 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:47:43 +1100
Subject: [PATCH 15/22] Force maximized windows while taskbar is hidden
---
src/SlipperyContext.Polling.cs | 24 ++++++++----------------
1 file changed, 8 insertions(+), 16 deletions(-)
diff --git a/src/SlipperyContext.Polling.cs b/src/SlipperyContext.Polling.cs
index 02a80e3..fc1247b 100644
--- a/src/SlipperyContext.Polling.cs
+++ b/src/SlipperyContext.Polling.cs
@@ -28,11 +28,6 @@ private IntPtr MouseHookCallback(int nCode, IntPtr wParam, IntPtr lParam)
NativeMethods.MSLLHOOKSTRUCT mouse = (NativeMethods.MSLLHOOKSTRUCT)Marshal.PtrToStructure(
lParam, typeof(NativeMethods.MSLLHOOKSTRUCT));
- // Do not touch ABM_SETSTATE here. Changing ABS_AUTOHIDE causes
- // Explorer to recalculate the desktop work area, which makes
- // maximized windows resize when Win or a tray flyout is used.
- // Instead, pre-authorize the notification-area transition and
- // keep the actual taskbar window physically on-screen.
if (_taskbars.IsPointOverNotificationArea(mouse.pt))
{
TimeSpan grace = message == NativeMethods.WM_LBUTTONDOWN
@@ -79,21 +74,18 @@ private void PollTaskbarState()
bool shouldShow = _winDown || shellUi || interacting || trayVisibilityGuard || now < _visibleUntilUtc;
+ // On top/left/right layouts some Explorer variants keep a real work-area
+ // reservation even though Slippery hides the taskbar. Standard maximized
+ // windows then refuse a normal SetWindowPos and snap back to rcWork.
+ // While hidden, force every visible maximized window to the full monitor
+ // by temporarily clearing WS_MAXIMIZE during the move, then restoring it.
+ if (!shouldShow)
+ _taskbars.ForceAllMaximizedWindowsIntoTopAndSideGaps();
+
bool anyTaskbarVisible;
bool allTaskbarsVisible;
_taskbars.GetActualVisibilityState(out anyTaskbarVisible, out allTaskbarsVisible);
- // Native auto-hide is enabled only so Windows releases the taskbar's work
- // area. Explorer may still try to reveal the bar when the pointer touches
- // an edge, so immediately correct any visibility that Slippery did not
- // authorize. Conversely, if Explorer auto-hides while Start/shell UI is
- // active, put the taskbar back on-screen.
- // Only correct the dangerous direction here: Explorer revealing a
- // taskbar that Slippery intends to keep hidden. When the taskbar is
- // intentionally visible, Explorer is allowed to own the intermediate
- // frames of Start/tray/XAML animations. Re-showing or repositioning the
- // taskbar during those frames is what caused the visible close/reopen
- // stutter around the hidden-icons flyout.
bool unauthorizedReveal = !shouldShow && anyTaskbarVisible;
if (shouldShow != _lastShouldShow || unauthorizedReveal || _lastApplyUtc == DateTime.MinValue)
From 1321c64da94c8520adb77c73a3d62cba12765a41 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:47:54 +1100
Subject: [PATCH 16/22] Add aggressive gap-fix diagnostics
---
src/SlipperyContext.Diagnostics.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/SlipperyContext.Diagnostics.cs b/src/SlipperyContext.Diagnostics.cs
index 662670c..b36d747 100644
--- a/src/SlipperyContext.Diagnostics.cs
+++ b/src/SlipperyContext.Diagnostics.cs
@@ -20,7 +20,7 @@ private void CopyDiagnostics()
{
StringBuilder b = new StringBuilder();
b.AppendLine("Slippery Taskbar C# diagnostics");
- b.AppendLine("Build: 1.0.1");
+ b.AppendLine("Build: 1.0.5-force-maximized");
b.AppendLine("Runtime: " + Environment.Version);
b.AppendLine("OS: " + Environment.OSVersion);
b.AppendLine("Executable: " + Application.ExecutablePath);
@@ -29,6 +29,8 @@ private void CopyDiagnostics()
b.AppendLine("Start with Windows: " + _startWithWindows);
b.AppendLine("Keep visible while interacting: " + _preferencesStore.Current.KeepVisibleWhileInteracting);
b.AppendLine("Native auto-hide active: " + ((_taskbars.GetAppbarState() & NativeMethods.ABS_AUTOHIDE) != 0));
+ b.AppendLine("Forced maximized windows last pass: " + _taskbars.LastForcedMaximizedCount);
+ b.AppendLine("Forced maximized windows total: " + _taskbars.TotalForcedMaximizedCount);
b.AppendLine("Tray visibility guard active: " + (DateTime.UtcNow < _trayInteractionPinUntilUtc || _taskbars.IsTrayOverflowOpen()));
b.AppendLine("Notification-area mouse guard installed: " + (_mouseHook != IntPtr.Zero));
b.AppendLine("Work area: " + _taskbars.DescribeWorkArea());
From 23e8c7073b74c23134fce383e6c6ef7e775f2785 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:48:33 +1100
Subject: [PATCH 17/22] Embed maximized-window style APIs
---
bootstrap/payload/NativeMethods.cs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bootstrap/payload/NativeMethods.cs b/bootstrap/payload/NativeMethods.cs
index a5f2aac..41a415b 100644
--- a/bootstrap/payload/NativeMethods.cs
+++ b/bootstrap/payload/NativeMethods.cs
@@ -57,6 +57,8 @@ internal static class NativeMethods
public const uint ABM_GETSTATE = 0x00000004;
public const uint ABM_SETSTATE = 0x0000000A;
public const uint ABS_AUTOHIDE = 0x0000001;
+ public const int GWL_STYLE = -16;
+ public const long WS_MAXIMIZE = 0x01000000L;
[StructLayout(LayoutKind.Sequential)] public struct POINT { public int X; public int Y; }
[StructLayout(LayoutKind.Sequential)] public struct RECT { public int Left; public int Top; public int Right; public int Bottom; }
@@ -95,8 +97,11 @@ internal static class NativeMethods
[DllImport("user32.dll", CharSet = CharSet.Unicode)] public static extern IntPtr FindWindowEx(IntPtr parent, IntPtr childAfter, string className, string windowName);
[DllImport("user32.dll")] public static extern bool IsWindow(IntPtr hWnd);
[DllImport("user32.dll")] public static extern bool IsWindowVisible(IntPtr hWnd);
+ [DllImport("user32.dll")] public static extern bool IsZoomed(IntPtr hWnd);
[DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
[DllImport("user32.dll", SetLastError = true)] public static extern bool SetWindowPos(IntPtr hWnd, IntPtr insertAfter, int x, int y, int cx, int cy, uint flags);
+ [DllImport("user32.dll", EntryPoint = "GetWindowLongPtrW", SetLastError = true)] public static extern IntPtr GetWindowLongPtr(IntPtr hWnd, int nIndex);
+ [DllImport("user32.dll", EntryPoint = "SetWindowLongPtrW", SetLastError = true)] public static extern IntPtr SetWindowLongPtr(IntPtr hWnd, int nIndex, IntPtr newLong);
[DllImport("user32.dll")] public static extern bool GetWindowRect(IntPtr hWnd, out RECT rect);
[DllImport("user32.dll")] public static extern IntPtr MonitorFromWindow(IntPtr hWnd, uint flags);
[DllImport("user32.dll", CharSet = CharSet.Unicode)] public static extern bool GetMonitorInfo(IntPtr hMonitor, ref MONITORINFO info);
From dc12d0eeb86b27cc1666f8d1dbaddc6737e840e8 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:48:59 +1100
Subject: [PATCH 18/22] Embed force-maximized gap handling
---
bootstrap/payload/TaskbarController.Core.cs | 92 +++++++++++++++++++++
1 file changed, 92 insertions(+)
diff --git a/bootstrap/payload/TaskbarController.Core.cs b/bootstrap/payload/TaskbarController.Core.cs
index d3d18a1..89b37e0 100644
--- a/bootstrap/payload/TaskbarController.Core.cs
+++ b/bootstrap/payload/TaskbarController.Core.cs
@@ -22,6 +22,9 @@ internal sealed partial class TaskbarController
private bool _originalAppbarCaptured;
private readonly List _originalWorkAreas = new List();
private bool _workAreasCaptured;
+ private DateTime _lastForcedMaximizedPassUtc = DateTime.MinValue;
+ private int _lastForcedMaximizedCount;
+ private int _totalForcedMaximizedCount;
private sealed class WorkAreaEntry
{
@@ -72,10 +75,99 @@ public void ApplyVisibility(bool show)
foreach (IntPtr h in _taskbars)
{
if (!NativeMethods.IsWindow(h)) continue;
+
NativeMethods.ShowWindow(h, show ? NativeMethods.SW_SHOWNOACTIVATE : NativeMethods.SW_HIDE);
}
}
+ public void ForceAllMaximizedWindowsIntoTopAndSideGaps()
+ {
+ DateTime now = DateTime.UtcNow;
+ if (_lastForcedMaximizedPassUtc != DateTime.MinValue &&
+ now - _lastForcedMaximizedPassUtc < TimeSpan.FromMilliseconds(90))
+ return;
+ _lastForcedMaximizedPassUtc = now;
+ _lastForcedMaximizedCount = 0;
+
+ NativeMethods.EnumWindows(delegate(IntPtr hWnd, IntPtr lParam)
+ {
+ if (!NativeMethods.IsWindow(hWnd) || !NativeMethods.IsWindowVisible(hWnd)) return true;
+ if (!NativeMethods.IsZoomed(hWnd)) return true;
+
+ string cls = GetWindowClass(hWnd);
+ if (IsTaskbarClass(cls) || IsShellUiWindow(hWnd)) return true;
+
+ IntPtr monitor = NativeMethods.MonitorFromWindow(hWnd, NativeMethods.MONITOR_DEFAULTTONEAREST);
+ if (monitor == IntPtr.Zero) return true;
+
+ NativeMethods.MONITORINFO mi = new NativeMethods.MONITORINFO();
+ mi.cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFO));
+ if (!NativeMethods.GetMonitorInfo(monitor, ref mi)) return true;
+
+ int topReserve = mi.rcWork.Top - mi.rcMonitor.Top;
+ int leftReserve = mi.rcWork.Left - mi.rcMonitor.Left;
+ int rightReserve = mi.rcMonitor.Right - mi.rcWork.Right;
+
+ if (topReserve < 8 && leftReserve < 8 && rightReserve < 8) return true;
+
+ NativeMethods.RECT r;
+ if (!NativeMethods.GetWindowRect(hWnd, out r)) return true;
+
+ int tolerance = 40;
+ bool looksLikeWorkAreaMaximized =
+ r.Left <= mi.rcWork.Left + tolerance &&
+ r.Top <= mi.rcWork.Top + tolerance &&
+ r.Right >= mi.rcWork.Right - tolerance &&
+ r.Bottom >= mi.rcWork.Bottom - tolerance;
+ if (!looksLikeWorkAreaMaximized) return true;
+
+ IntPtr stylePtr = NativeMethods.GetWindowLongPtr(hWnd, NativeMethods.GWL_STYLE);
+ long style = stylePtr.ToInt64();
+ if ((style & NativeMethods.WS_MAXIMIZE) == 0) return true;
+
+ int extraLeft = Math.Max(0, mi.rcWork.Left - r.Left);
+ int extraTop = Math.Max(0, mi.rcWork.Top - r.Top);
+ int extraRight = Math.Max(0, r.Right - mi.rcWork.Right);
+ int extraBottom = Math.Max(0, r.Bottom - mi.rcWork.Bottom);
+
+ int x = mi.rcMonitor.Left - extraLeft;
+ int y = mi.rcMonitor.Top - extraTop;
+ int right = mi.rcMonitor.Right + extraRight;
+ int bottom = mi.rcMonitor.Bottom + extraBottom;
+ int cx = right - x;
+ int cy = bottom - y;
+ if (cx <= 0 || cy <= 0) return true;
+
+ IntPtr restoredStyle = new IntPtr(style & ~NativeMethods.WS_MAXIMIZE);
+ IntPtr previousStyle = NativeMethods.SetWindowLongPtr(hWnd, NativeMethods.GWL_STYLE, restoredStyle);
+ bool clearedMaximizeStyle = previousStyle != IntPtr.Zero;
+
+ bool moved = NativeMethods.SetWindowPos(hWnd, IntPtr.Zero, x, y, cx, cy,
+ NativeMethods.SWP_NOACTIVATE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOSENDCHANGING);
+
+ if (clearedMaximizeStyle)
+ NativeMethods.SetWindowLongPtr(hWnd, NativeMethods.GWL_STYLE, stylePtr);
+
+ if (moved)
+ {
+ _lastForcedMaximizedCount++;
+ _totalForcedMaximizedCount++;
+ }
+
+ return true;
+ }, IntPtr.Zero);
+ }
+
+ public int LastForcedMaximizedCount
+ {
+ get { return _lastForcedMaximizedCount; }
+ }
+
+ public int TotalForcedMaximizedCount
+ {
+ get { return _totalForcedMaximizedCount; }
+ }
+
private static void ForceTaskbarOnScreen(IntPtr h)
{
NativeMethods.RECT r;
From 14678558ff297de321d03162892b06b4b02bb0c7 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:49:12 +1100
Subject: [PATCH 19/22] Embed forced maximized-window polling
---
bootstrap/payload/SlipperyContext.Polling.cs | 19 +++----------------
1 file changed, 3 insertions(+), 16 deletions(-)
diff --git a/bootstrap/payload/SlipperyContext.Polling.cs b/bootstrap/payload/SlipperyContext.Polling.cs
index 02a80e3..7fa90f6 100644
--- a/bootstrap/payload/SlipperyContext.Polling.cs
+++ b/bootstrap/payload/SlipperyContext.Polling.cs
@@ -28,11 +28,6 @@ private IntPtr MouseHookCallback(int nCode, IntPtr wParam, IntPtr lParam)
NativeMethods.MSLLHOOKSTRUCT mouse = (NativeMethods.MSLLHOOKSTRUCT)Marshal.PtrToStructure(
lParam, typeof(NativeMethods.MSLLHOOKSTRUCT));
- // Do not touch ABM_SETSTATE here. Changing ABS_AUTOHIDE causes
- // Explorer to recalculate the desktop work area, which makes
- // maximized windows resize when Win or a tray flyout is used.
- // Instead, pre-authorize the notification-area transition and
- // keep the actual taskbar window physically on-screen.
if (_taskbars.IsPointOverNotificationArea(mouse.pt))
{
TimeSpan grace = message == NativeMethods.WM_LBUTTONDOWN
@@ -79,21 +74,13 @@ private void PollTaskbarState()
bool shouldShow = _winDown || shellUi || interacting || trayVisibilityGuard || now < _visibleUntilUtc;
+ if (!shouldShow)
+ _taskbars.ForceAllMaximizedWindowsIntoTopAndSideGaps();
+
bool anyTaskbarVisible;
bool allTaskbarsVisible;
_taskbars.GetActualVisibilityState(out anyTaskbarVisible, out allTaskbarsVisible);
- // Native auto-hide is enabled only so Windows releases the taskbar's work
- // area. Explorer may still try to reveal the bar when the pointer touches
- // an edge, so immediately correct any visibility that Slippery did not
- // authorize. Conversely, if Explorer auto-hides while Start/shell UI is
- // active, put the taskbar back on-screen.
- // Only correct the dangerous direction here: Explorer revealing a
- // taskbar that Slippery intends to keep hidden. When the taskbar is
- // intentionally visible, Explorer is allowed to own the intermediate
- // frames of Start/tray/XAML animations. Re-showing or repositioning the
- // taskbar during those frames is what caused the visible close/reopen
- // stutter around the hidden-icons flyout.
bool unauthorizedReveal = !shouldShow && anyTaskbarVisible;
if (shouldShow != _lastShouldShow || unauthorizedReveal || _lastApplyUtc == DateTime.MinValue)
From 9161d1794f355492c918e8e6d79afbd8d7edc7e9 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:49:25 +1100
Subject: [PATCH 20/22] Embed aggressive gap diagnostics
---
bootstrap/payload/SlipperyContext.Diagnostics.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bootstrap/payload/SlipperyContext.Diagnostics.cs b/bootstrap/payload/SlipperyContext.Diagnostics.cs
index 662670c..b36d747 100644
--- a/bootstrap/payload/SlipperyContext.Diagnostics.cs
+++ b/bootstrap/payload/SlipperyContext.Diagnostics.cs
@@ -20,7 +20,7 @@ private void CopyDiagnostics()
{
StringBuilder b = new StringBuilder();
b.AppendLine("Slippery Taskbar C# diagnostics");
- b.AppendLine("Build: 1.0.1");
+ b.AppendLine("Build: 1.0.5-force-maximized");
b.AppendLine("Runtime: " + Environment.Version);
b.AppendLine("OS: " + Environment.OSVersion);
b.AppendLine("Executable: " + Application.ExecutablePath);
@@ -29,6 +29,8 @@ private void CopyDiagnostics()
b.AppendLine("Start with Windows: " + _startWithWindows);
b.AppendLine("Keep visible while interacting: " + _preferencesStore.Current.KeepVisibleWhileInteracting);
b.AppendLine("Native auto-hide active: " + ((_taskbars.GetAppbarState() & NativeMethods.ABS_AUTOHIDE) != 0));
+ b.AppendLine("Forced maximized windows last pass: " + _taskbars.LastForcedMaximizedCount);
+ b.AppendLine("Forced maximized windows total: " + _taskbars.TotalForcedMaximizedCount);
b.AppendLine("Tray visibility guard active: " + (DateTime.UtcNow < _trayInteractionPinUntilUtc || _taskbars.IsTrayOverflowOpen()));
b.AppendLine("Notification-area mouse guard installed: " + (_mouseHook != IntPtr.Zero));
b.AppendLine("Work area: " + _taskbars.DescribeWorkArea());
From 873cbb6a89df4219d610372d75f23d27826d7172 Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:49:36 +1100
Subject: [PATCH 21/22] Bump force-maximized test version
---
VERSION | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/VERSION b/VERSION
index 7dea76e..90a27f9 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.1
+1.0.5
From ac58c524ba8251cbe54bd52f37e1c600212f943c Mon Sep 17 00:00:00 2001
From: KoBruh <42637159+KoBruh@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:49:45 +1100
Subject: [PATCH 22/22] Bump project version to 1.0.5
---
src/SlipperyTaskbar.csproj | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/SlipperyTaskbar.csproj b/src/SlipperyTaskbar.csproj
index e7233a2..5ba8c65 100644
--- a/src/SlipperyTaskbar.csproj
+++ b/src/SlipperyTaskbar.csproj
@@ -13,8 +13,8 @@
true
true
false
- 1.0.1
- 1.0.1.0
+ 1.0.5
+ 1.0.5.0
Slippery Taskbar
Hide the Windows 11 taskbar until the Windows key or shell UI intentionally reveals it.