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/27] 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/27] 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/27] 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/27] 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/27] 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/27] 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/27] 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/27] 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/27] 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/27] 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 01d308502619d9df220a3cdc8b331009c89d8261 Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:09:41 +1100 Subject: [PATCH 11/27] Correct top and side maximized-window gaps --- src/TaskbarController.Core.cs | 151 +++++++++++++++++++++++++++++++++- 1 file changed, 150 insertions(+), 1 deletion(-) diff --git a/src/TaskbarController.Core.cs b/src/TaskbarController.Core.cs index 97e6434..cae9499 100644 --- a/src/TaskbarController.Core.cs +++ b/src/TaskbarController.Core.cs @@ -22,6 +22,7 @@ internal sealed partial class TaskbarController private bool _originalAppbarCaptured; private readonly List _originalWorkAreas = new List(); private bool _workAreasCaptured; + private int _lastGapCorrections; private sealed class WorkAreaEntry { @@ -29,6 +30,19 @@ private sealed class WorkAreaEntry public NativeMethods.RECT Work; } + private sealed class TaskbarEdgeInfo + { + public IntPtr Monitor; + public NativeMethods.RECT MonitorRect; + public int Edge; + public int Thickness; + } + + private const int EdgeTop = 0; + private const int EdgeLeft = 1; + private const int EdgeRight = 2; + private const int EdgeBottom = 3; + public TaskbarController(string stateDirectory) { _workAreaStatePath = Path.Combine(stateDirectory, "workarea.state"); @@ -69,12 +83,147 @@ public IList RefreshTaskbars() public void ApplyVisibility(bool show) { RefreshTaskbars(); + List edges = show ? null : CaptureTaskbarEdges(); + foreach (IntPtr h in _taskbars) { if (!NativeMethods.IsWindow(h)) continue; - NativeMethods.ShowWindow(h, show ? NativeMethods.SW_SHOWNOACTIVATE : NativeMethods.SW_HIDE); } + + if (!show && edges != null) + CorrectTopAndSideMaximizedGaps(edges); + } + + private List CaptureTaskbarEdges() + { + List edges = new List(); + foreach (IntPtr taskbar in _taskbars) + { + NativeMethods.RECT taskbarRect; + if (!NativeMethods.GetWindowRect(taskbar, out taskbarRect)) continue; + + IntPtr monitor = NativeMethods.MonitorFromWindow(taskbar, NativeMethods.MONITOR_DEFAULTTONEAREST); + if (monitor == IntPtr.Zero) continue; + + NativeMethods.MONITORINFO mi = new NativeMethods.MONITORINFO(); + mi.cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFO)); + if (!NativeMethods.GetMonitorInfo(monitor, ref mi)) continue; + + int width = taskbarRect.Right - taskbarRect.Left; + int height = taskbarRect.Bottom - taskbarRect.Top; + if (width <= 0 || height <= 0) continue; + + TaskbarEdgeInfo info = new TaskbarEdgeInfo(); + info.Monitor = monitor; + info.MonitorRect = mi.rcMonitor; + if (width >= height) + { + bool top = Math.Abs(taskbarRect.Top - mi.rcMonitor.Top) <= + Math.Abs(taskbarRect.Bottom - mi.rcMonitor.Bottom); + info.Edge = top ? EdgeTop : EdgeBottom; + info.Thickness = height; + } + else + { + bool left = Math.Abs(taskbarRect.Left - mi.rcMonitor.Left) <= + Math.Abs(taskbarRect.Right - mi.rcMonitor.Right); + info.Edge = left ? EdgeLeft : EdgeRight; + info.Thickness = width; + } + edges.Add(info); + } + return edges; + } + + private void CorrectTopAndSideMaximizedGaps(List edges) + { + _lastGapCorrections = 0; + foreach (TaskbarEdgeInfo edge in edges) + { + // Bottom placement already behaves correctly on Windows 11. Keep this + // fix narrowly scoped to the top/left/right placements that leave a + // stale taskbar-sized maximize gap. + if (edge.Edge == EdgeBottom) continue; + + NativeMethods.EnumWindows(delegate(IntPtr hWnd, IntPtr lParam) + { + if (!NativeMethods.IsWindowVisible(hWnd)) return true; + string cls = GetWindowClass(hWnd); + if (IsTaskbarClass(cls)) return true; + + IntPtr monitor = NativeMethods.MonitorFromWindow(hWnd, NativeMethods.MONITOR_DEFAULTTONEAREST); + if (monitor != edge.Monitor) return true; + + NativeMethods.RECT r; + if (!NativeMethods.GetWindowRect(hWnd, out r)) return true; + int width = r.Right - r.Left; + int height = r.Bottom - r.Top; + if (width <= 0 || height <= 0) return true; + + NativeMethods.RECT m = edge.MonitorRect; + int tolerance = Math.Max(16, edge.Thickness / 2); + int minGap = Math.Max(12, edge.Thickness / 3); + int maxGap = Math.Max(160, edge.Thickness * 3); + int gap = 0; + bool looksMaximized = false; + + if (edge.Edge == EdgeTop) + { + gap = r.Top - m.Top; + looksMaximized = r.Left <= m.Left + tolerance && + r.Right >= m.Right - tolerance && + r.Bottom >= m.Bottom - tolerance; + } + else if (edge.Edge == EdgeLeft) + { + gap = r.Left - m.Left; + looksMaximized = r.Top <= m.Top + tolerance && + r.Bottom >= m.Bottom - tolerance && + r.Right >= m.Right - tolerance; + } + else if (edge.Edge == EdgeRight) + { + gap = m.Right - r.Right; + looksMaximized = r.Top <= m.Top + tolerance && + r.Bottom >= m.Bottom - tolerance && + r.Left <= m.Left + tolerance; + } + + if (!looksMaximized || gap < minGap || gap > maxGap) return true; + + int x = r.Left; + int y = r.Top; + int cx = width; + int cy = height; + + if (edge.Edge == EdgeTop) + { + y -= gap; + cy += gap; + } + else if (edge.Edge == EdgeLeft) + { + x -= gap; + cx += gap; + } + else if (edge.Edge == EdgeRight) + { + cx += gap; + } + + if (NativeMethods.SetWindowPos(hWnd, IntPtr.Zero, x, y, cx, cy, + NativeMethods.SWP_NOACTIVATE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOSENDCHANGING)) + _lastGapCorrections++; + + return true; + }, IntPtr.Zero); + } + } + + public int LastGapCorrectionCount + { + get { return _lastGapCorrections; } } private static void ForceTaskbarOnScreen(IntPtr h) From 44cb26644af4f91e639baa9880bfd51d030860ad Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:10:11 +1100 Subject: [PATCH 12/27] Sync top and side maximized-gap correction into setup payload --- bootstrap/payload/TaskbarController.Core.cs | 147 ++++++++++++++++++++ 1 file changed, 147 insertions(+) diff --git a/bootstrap/payload/TaskbarController.Core.cs b/bootstrap/payload/TaskbarController.Core.cs index d3d18a1..a2f9e78 100644 --- a/bootstrap/payload/TaskbarController.Core.cs +++ b/bootstrap/payload/TaskbarController.Core.cs @@ -22,6 +22,7 @@ internal sealed partial class TaskbarController private bool _originalAppbarCaptured; private readonly List _originalWorkAreas = new List(); private bool _workAreasCaptured; + private int _lastGapCorrections; private sealed class WorkAreaEntry { @@ -29,6 +30,19 @@ private sealed class WorkAreaEntry public NativeMethods.RECT Work; } + private sealed class TaskbarEdgeInfo + { + public IntPtr Monitor; + public NativeMethods.RECT MonitorRect; + public int Edge; + public int Thickness; + } + + private const int EdgeTop = 0; + private const int EdgeLeft = 1; + private const int EdgeRight = 2; + private const int EdgeBottom = 3; + public TaskbarController(string stateDirectory) { _workAreaStatePath = Path.Combine(stateDirectory, "workarea.state"); @@ -69,11 +83,144 @@ public IList RefreshTaskbars() public void ApplyVisibility(bool show) { RefreshTaskbars(); + List edges = show ? null : CaptureTaskbarEdges(); + foreach (IntPtr h in _taskbars) { if (!NativeMethods.IsWindow(h)) continue; NativeMethods.ShowWindow(h, show ? NativeMethods.SW_SHOWNOACTIVATE : NativeMethods.SW_HIDE); } + + if (!show && edges != null) + CorrectTopAndSideMaximizedGaps(edges); + } + + private List CaptureTaskbarEdges() + { + List edges = new List(); + foreach (IntPtr taskbar in _taskbars) + { + NativeMethods.RECT taskbarRect; + if (!NativeMethods.GetWindowRect(taskbar, out taskbarRect)) continue; + + IntPtr monitor = NativeMethods.MonitorFromWindow(taskbar, NativeMethods.MONITOR_DEFAULTTONEAREST); + if (monitor == IntPtr.Zero) continue; + + NativeMethods.MONITORINFO mi = new NativeMethods.MONITORINFO(); + mi.cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFO)); + if (!NativeMethods.GetMonitorInfo(monitor, ref mi)) continue; + + int width = taskbarRect.Right - taskbarRect.Left; + int height = taskbarRect.Bottom - taskbarRect.Top; + if (width <= 0 || height <= 0) continue; + + TaskbarEdgeInfo info = new TaskbarEdgeInfo(); + info.Monitor = monitor; + info.MonitorRect = mi.rcMonitor; + if (width >= height) + { + bool top = Math.Abs(taskbarRect.Top - mi.rcMonitor.Top) <= + Math.Abs(taskbarRect.Bottom - mi.rcMonitor.Bottom); + info.Edge = top ? EdgeTop : EdgeBottom; + info.Thickness = height; + } + else + { + bool left = Math.Abs(taskbarRect.Left - mi.rcMonitor.Left) <= + Math.Abs(taskbarRect.Right - mi.rcMonitor.Right); + info.Edge = left ? EdgeLeft : EdgeRight; + info.Thickness = width; + } + edges.Add(info); + } + return edges; + } + + private void CorrectTopAndSideMaximizedGaps(List edges) + { + _lastGapCorrections = 0; + foreach (TaskbarEdgeInfo edge in edges) + { + if (edge.Edge == EdgeBottom) continue; + + NativeMethods.EnumWindows(delegate(IntPtr hWnd, IntPtr lParam) + { + if (!NativeMethods.IsWindowVisible(hWnd)) return true; + string cls = GetWindowClass(hWnd); + if (IsTaskbarClass(cls)) return true; + + IntPtr monitor = NativeMethods.MonitorFromWindow(hWnd, NativeMethods.MONITOR_DEFAULTTONEAREST); + if (monitor != edge.Monitor) return true; + + NativeMethods.RECT r; + if (!NativeMethods.GetWindowRect(hWnd, out r)) return true; + int width = r.Right - r.Left; + int height = r.Bottom - r.Top; + if (width <= 0 || height <= 0) return true; + + NativeMethods.RECT m = edge.MonitorRect; + int tolerance = Math.Max(16, edge.Thickness / 2); + int minGap = Math.Max(12, edge.Thickness / 3); + int maxGap = Math.Max(160, edge.Thickness * 3); + int gap = 0; + bool looksMaximized = false; + + if (edge.Edge == EdgeTop) + { + gap = r.Top - m.Top; + looksMaximized = r.Left <= m.Left + tolerance && + r.Right >= m.Right - tolerance && + r.Bottom >= m.Bottom - tolerance; + } + else if (edge.Edge == EdgeLeft) + { + gap = r.Left - m.Left; + looksMaximized = r.Top <= m.Top + tolerance && + r.Bottom >= m.Bottom - tolerance && + r.Right >= m.Right - tolerance; + } + else if (edge.Edge == EdgeRight) + { + gap = m.Right - r.Right; + looksMaximized = r.Top <= m.Top + tolerance && + r.Bottom >= m.Bottom - tolerance && + r.Left <= m.Left + tolerance; + } + + if (!looksMaximized || gap < minGap || gap > maxGap) return true; + + int x = r.Left; + int y = r.Top; + int cx = width; + int cy = height; + + if (edge.Edge == EdgeTop) + { + y -= gap; + cy += gap; + } + else if (edge.Edge == EdgeLeft) + { + x -= gap; + cx += gap; + } + else if (edge.Edge == EdgeRight) + { + cx += gap; + } + + if (NativeMethods.SetWindowPos(hWnd, IntPtr.Zero, x, y, cx, cy, + NativeMethods.SWP_NOACTIVATE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOSENDCHANGING)) + _lastGapCorrections++; + + return true; + }, IntPtr.Zero); + } + } + + public int LastGapCorrectionCount + { + get { return _lastGapCorrections; } } private static void ForceTaskbarOnScreen(IntPtr h) From e76f6694e736d189565a95187ac623581fedf989 Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:10:29 +1100 Subject: [PATCH 13/27] Report focused maximized-gap correction diagnostics --- src/SlipperyContext.Diagnostics.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SlipperyContext.Diagnostics.cs b/src/SlipperyContext.Diagnostics.cs index 662670c..da824a1 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.2-gapfix"); b.AppendLine("Runtime: " + Environment.Version); b.AppendLine("OS: " + Environment.OSVersion); b.AppendLine("Executable: " + Application.ExecutablePath); @@ -29,6 +29,7 @@ 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("Top/side maximized gap corrections on last hide: " + _taskbars.LastGapCorrectionCount); 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 50384e6739eed7089a325a11253bceb1ec9b2b12 Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:10:44 +1100 Subject: [PATCH 14/27] Sync focused gap diagnostics into setup payload --- bootstrap/payload/SlipperyContext.Diagnostics.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/payload/SlipperyContext.Diagnostics.cs b/bootstrap/payload/SlipperyContext.Diagnostics.cs index 662670c..da824a1 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.2-gapfix"); b.AppendLine("Runtime: " + Environment.Version); b.AppendLine("OS: " + Environment.OSVersion); b.AppendLine("Executable: " + Application.ExecutablePath); @@ -29,6 +29,7 @@ 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("Top/side maximized gap corrections on last hide: " + _taskbars.LastGapCorrectionCount); 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 7acd5e6f346c9a82f7dc8165652c15f932339306 Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:10:55 +1100 Subject: [PATCH 15/27] Set focused gap-fix test version --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 7dea76e..6d7de6e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.1 +1.0.2 From d387d90e0d6834287ea082608f29c3174c15082c Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:11:02 +1100 Subject: [PATCH 16/27] Bump gap-fix test project version --- src/SlipperyTaskbar.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SlipperyTaskbar.csproj b/src/SlipperyTaskbar.csproj index e7233a2..a85a330 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.2 + 1.0.2.0 Slippery Taskbar Hide the Windows 11 taskbar until the Windows key or shell UI intentionally reveals it. From 06321b1d197d7b812e91718590fe24e94c6d2679 Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:16:44 +1100 Subject: [PATCH 17/27] Add foreground maximized gap watcher --- src/TaskbarController.GapWatch.cs | 100 ++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 src/TaskbarController.GapWatch.cs diff --git a/src/TaskbarController.GapWatch.cs b/src/TaskbarController.GapWatch.cs new file mode 100644 index 0000000..cb35765 --- /dev/null +++ b/src/TaskbarController.GapWatch.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Runtime.InteropServices; +using System.Reflection; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Json; +using System.Text; +using System.Threading; +using System.Windows.Forms; + +namespace SlipperyTaskbar +{ + internal sealed partial class TaskbarController + { + private DateTime _lastForegroundGapCheckUtc = DateTime.MinValue; + + [DllImport("user32.dll")] + private static extern bool IsZoomed(IntPtr hWnd); + + public void CorrectForegroundMaximizedGap() + { + DateTime now = DateTime.UtcNow; + if (_lastForegroundGapCheckUtc != DateTime.MinValue && + now - _lastForegroundGapCheckUtc < TimeSpan.FromMilliseconds(75)) + return; + _lastForegroundGapCheckUtc = now; + + IntPtr hWnd = NativeMethods.GetForegroundWindow(); + if (hWnd == IntPtr.Zero || !NativeMethods.IsWindowVisible(hWnd) || !IsZoomed(hWnd)) return; + + string cls = GetWindowClass(hWnd); + if (IsTaskbarClass(cls) || IsShellUiWindow(hWnd)) return; + + NativeMethods.RECT r; + if (!NativeMethods.GetWindowRect(hWnd, out r)) return; + + IntPtr monitor = NativeMethods.MonitorFromWindow(hWnd, NativeMethods.MONITOR_DEFAULTTONEAREST); + if (monitor == IntPtr.Zero) return; + + NativeMethods.MONITORINFO mi = new NativeMethods.MONITORINFO(); + mi.cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFO)); + if (!NativeMethods.GetMonitorInfo(monitor, ref mi)) return; + + NativeMethods.RECT m = mi.rcMonitor; + int monitorWidth = m.Right - m.Left; + int monitorHeight = m.Bottom - m.Top; + if (monitorWidth <= 0 || monitorHeight <= 0) return; + + int tolerance = Math.Max(12, Math.Min(monitorWidth, monitorHeight) / 100); + int maxGap = 192; + + int topGap = r.Top - m.Top; + int leftGap = r.Left - m.Left; + int rightGap = m.Right - r.Right; + int bottomGap = m.Bottom - r.Bottom; + + bool changed = false; + int x = r.Left; + int y = r.Top; + int right = r.Right; + int bottom = r.Bottom; + + // Correct only a single stale taskbar-sized edge while the other three + // edges already look maximized. Bottom is intentionally excluded because + // the normal Windows 11 bottom-taskbar path already behaves correctly. + if (topGap >= 12 && topGap <= maxGap && + Math.Abs(leftGap) <= tolerance && Math.Abs(rightGap) <= tolerance && Math.Abs(bottomGap) <= tolerance) + { + y = m.Top; + changed = true; + } + else if (leftGap >= 12 && leftGap <= maxGap && + Math.Abs(topGap) <= tolerance && Math.Abs(rightGap) <= tolerance && Math.Abs(bottomGap) <= tolerance) + { + x = m.Left; + changed = true; + } + else if (rightGap >= 12 && rightGap <= maxGap && + Math.Abs(topGap) <= tolerance && Math.Abs(leftGap) <= tolerance && Math.Abs(bottomGap) <= tolerance) + { + right = m.Right; + changed = true; + } + + if (!changed) return; + + int cx = right - x; + int cy = bottom - y; + if (cx <= 0 || cy <= 0) return; + + if (NativeMethods.SetWindowPos(hWnd, IntPtr.Zero, x, y, cx, cy, + NativeMethods.SWP_NOACTIVATE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOSENDCHANGING)) + _lastGapCorrections++; + } + } +} From 08b19b3ee1cea3847a818ab88078517f84acd0d1 Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:17:12 +1100 Subject: [PATCH 18/27] Sync foreground gap watcher into setup payload --- .../payload/TaskbarController.GapWatch.cs | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 bootstrap/payload/TaskbarController.GapWatch.cs diff --git a/bootstrap/payload/TaskbarController.GapWatch.cs b/bootstrap/payload/TaskbarController.GapWatch.cs new file mode 100644 index 0000000..b0de033 --- /dev/null +++ b/bootstrap/payload/TaskbarController.GapWatch.cs @@ -0,0 +1,97 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Runtime.InteropServices; +using System.Reflection; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Json; +using System.Text; +using System.Threading; +using System.Windows.Forms; + +namespace SlipperyTaskbar +{ + internal sealed partial class TaskbarController + { + private DateTime _lastForegroundGapCheckUtc = DateTime.MinValue; + + [DllImport("user32.dll")] + private static extern bool IsZoomed(IntPtr hWnd); + + public void CorrectForegroundMaximizedGap() + { + DateTime now = DateTime.UtcNow; + if (_lastForegroundGapCheckUtc != DateTime.MinValue && + now - _lastForegroundGapCheckUtc < TimeSpan.FromMilliseconds(75)) + return; + _lastForegroundGapCheckUtc = now; + + IntPtr hWnd = NativeMethods.GetForegroundWindow(); + if (hWnd == IntPtr.Zero || !NativeMethods.IsWindowVisible(hWnd) || !IsZoomed(hWnd)) return; + + string cls = GetWindowClass(hWnd); + if (IsTaskbarClass(cls) || IsShellUiWindow(hWnd)) return; + + NativeMethods.RECT r; + if (!NativeMethods.GetWindowRect(hWnd, out r)) return; + + IntPtr monitor = NativeMethods.MonitorFromWindow(hWnd, NativeMethods.MONITOR_DEFAULTTONEAREST); + if (monitor == IntPtr.Zero) return; + + NativeMethods.MONITORINFO mi = new NativeMethods.MONITORINFO(); + mi.cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFO)); + if (!NativeMethods.GetMonitorInfo(monitor, ref mi)) return; + + NativeMethods.RECT m = mi.rcMonitor; + int monitorWidth = m.Right - m.Left; + int monitorHeight = m.Bottom - m.Top; + if (monitorWidth <= 0 || monitorHeight <= 0) return; + + int tolerance = Math.Max(12, Math.Min(monitorWidth, monitorHeight) / 100); + int maxGap = 192; + + int topGap = r.Top - m.Top; + int leftGap = r.Left - m.Left; + int rightGap = m.Right - r.Right; + int bottomGap = m.Bottom - r.Bottom; + + bool changed = false; + int x = r.Left; + int y = r.Top; + int right = r.Right; + int bottom = r.Bottom; + + if (topGap >= 12 && topGap <= maxGap && + Math.Abs(leftGap) <= tolerance && Math.Abs(rightGap) <= tolerance && Math.Abs(bottomGap) <= tolerance) + { + y = m.Top; + changed = true; + } + else if (leftGap >= 12 && leftGap <= maxGap && + Math.Abs(topGap) <= tolerance && Math.Abs(rightGap) <= tolerance && Math.Abs(bottomGap) <= tolerance) + { + x = m.Left; + changed = true; + } + else if (rightGap >= 12 && rightGap <= maxGap && + Math.Abs(topGap) <= tolerance && Math.Abs(leftGap) <= tolerance && Math.Abs(bottomGap) <= tolerance) + { + right = m.Right; + changed = true; + } + + if (!changed) return; + + int cx = right - x; + int cy = bottom - y; + if (cx <= 0 || cy <= 0) return; + + if (NativeMethods.SetWindowPos(hWnd, IntPtr.Zero, x, y, cx, cy, + NativeMethods.SWP_NOACTIVATE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOSENDCHANGING)) + _lastGapCorrections++; + } + } +} From b6c0c7e1382b48a737ca15eb2fe6caa5a801c05d Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:17:22 +1100 Subject: [PATCH 19/27] Compile foreground gap watcher in framework build --- src/build-framework.cmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/build-framework.cmd b/src/build-framework.cmd index 1fcac07..8f980c2 100644 --- a/src/build-framework.cmd +++ b/src/build-framework.cmd @@ -15,6 +15,7 @@ if not exist "%CSC%" ( "%ROOT%Program.cs" "%ROOT%SlipperyContext.Core.cs" "%ROOT%SlipperyContext.Polling.cs" ^ "%ROOT%SlipperyContext.Messages.cs" "%ROOT%SlipperyContext.Diagnostics.cs" "%ROOT%Support.cs" ^ "%ROOT%TaskbarController.Core.cs" "%ROOT%TaskbarController.WorkArea.cs" ^ - "%ROOT%TaskbarController.Shell.cs" "%ROOT%CrashLog.cs" "%ROOT%NativeMethods.cs" + "%ROOT%TaskbarController.Shell.cs" "%ROOT%TaskbarController.GapWatch.cs" ^ + "%ROOT%CrashLog.cs" "%ROOT%NativeMethods.cs" if errorlevel 1 exit /b %errorlevel% echo Built %ROOT%SlipperyTaskbar.exe From c7ce6aee5b505e7d870e0b5f02c86a9d1dd907fd Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:17:41 +1100 Subject: [PATCH 20/27] Watch foreground maximized app for stale top and side gap --- src/SlipperyContext.Polling.cs | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/src/SlipperyContext.Polling.cs b/src/SlipperyContext.Polling.cs index 02a80e3..eafdf0a 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 @@ -83,17 +78,6 @@ private void PollTaskbarState() 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) @@ -104,6 +88,16 @@ private void PollTaskbarState() return; } + if (!shouldShow) + { + // Some apps (Chrome/Electron/Explorer-style maximized windows) can + // immediately reassert the stale taskbar-sized maximize gap after a + // one-shot SetWindowPos correction. Watch only the foreground + // maximized window while Slippery is hidden and repair that edge if it + // comes back. The controller throttles this to 75 ms. + _taskbars.CorrectForegroundMaximizedGap(); + } + if (!shouldShow && now - _lastApplyUtc >= HiddenStateWatchdog) { _taskbars.ApplyVisibility(false); From dc1fc8e7e4a2954156a9dff62fbddb933842df83 Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:17:59 +1100 Subject: [PATCH 21/27] Sync foreground gap watcher polling into setup payload --- bootstrap/payload/SlipperyContext.Polling.cs | 21 +++++--------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/bootstrap/payload/SlipperyContext.Polling.cs b/bootstrap/payload/SlipperyContext.Polling.cs index 02a80e3..4319935 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 @@ -83,17 +78,6 @@ private void PollTaskbarState() 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) @@ -104,6 +88,11 @@ private void PollTaskbarState() return; } + if (!shouldShow) + { + _taskbars.CorrectForegroundMaximizedGap(); + } + if (!shouldShow && now - _lastApplyUtc >= HiddenStateWatchdog) { _taskbars.ApplyVisibility(false); From b7487f832162fe9da25eba7dc975eb49bf5a00ef Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:18:32 +1100 Subject: [PATCH 22/27] Track foreground gap corrections --- src/TaskbarController.GapWatch.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/TaskbarController.GapWatch.cs b/src/TaskbarController.GapWatch.cs index cb35765..fb3f8d6 100644 --- a/src/TaskbarController.GapWatch.cs +++ b/src/TaskbarController.GapWatch.cs @@ -17,6 +17,7 @@ namespace SlipperyTaskbar internal sealed partial class TaskbarController { private DateTime _lastForegroundGapCheckUtc = DateTime.MinValue; + private int _foregroundGapCorrections; [DllImport("user32.dll")] private static extern bool IsZoomed(IntPtr hWnd); @@ -64,9 +65,6 @@ public void CorrectForegroundMaximizedGap() int right = r.Right; int bottom = r.Bottom; - // Correct only a single stale taskbar-sized edge while the other three - // edges already look maximized. Bottom is intentionally excluded because - // the normal Windows 11 bottom-taskbar path already behaves correctly. if (topGap >= 12 && topGap <= maxGap && Math.Abs(leftGap) <= tolerance && Math.Abs(rightGap) <= tolerance && Math.Abs(bottomGap) <= tolerance) { @@ -94,7 +92,15 @@ public void CorrectForegroundMaximizedGap() if (NativeMethods.SetWindowPos(hWnd, IntPtr.Zero, x, y, cx, cy, NativeMethods.SWP_NOACTIVATE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOSENDCHANGING)) + { _lastGapCorrections++; + _foregroundGapCorrections++; + } + } + + public int ForegroundGapCorrectionCount + { + get { return _foregroundGapCorrections; } } } } From 02afad1355cc4a5e94426d70846e6340ff57194a Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:18:44 +1100 Subject: [PATCH 23/27] Sync foreground correction counter into setup payload --- bootstrap/payload/TaskbarController.GapWatch.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bootstrap/payload/TaskbarController.GapWatch.cs b/bootstrap/payload/TaskbarController.GapWatch.cs index b0de033..fb3f8d6 100644 --- a/bootstrap/payload/TaskbarController.GapWatch.cs +++ b/bootstrap/payload/TaskbarController.GapWatch.cs @@ -17,6 +17,7 @@ namespace SlipperyTaskbar internal sealed partial class TaskbarController { private DateTime _lastForegroundGapCheckUtc = DateTime.MinValue; + private int _foregroundGapCorrections; [DllImport("user32.dll")] private static extern bool IsZoomed(IntPtr hWnd); @@ -91,7 +92,15 @@ public void CorrectForegroundMaximizedGap() if (NativeMethods.SetWindowPos(hWnd, IntPtr.Zero, x, y, cx, cy, NativeMethods.SWP_NOACTIVATE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOSENDCHANGING)) + { _lastGapCorrections++; + _foregroundGapCorrections++; + } + } + + public int ForegroundGapCorrectionCount + { + get { return _foregroundGapCorrections; } } } } From 6743b2fd19fb02d38b59e96f141e9d95377231f2 Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:19:02 +1100 Subject: [PATCH 24/27] Report foreground gap watcher activity --- src/SlipperyContext.Diagnostics.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SlipperyContext.Diagnostics.cs b/src/SlipperyContext.Diagnostics.cs index da824a1..8121cae 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.2-gapfix"); + b.AppendLine("Build: 1.0.3-gapwatch"); b.AppendLine("Runtime: " + Environment.Version); b.AppendLine("OS: " + Environment.OSVersion); b.AppendLine("Executable: " + Application.ExecutablePath); @@ -30,6 +30,7 @@ private void CopyDiagnostics() b.AppendLine("Keep visible while interacting: " + _preferencesStore.Current.KeepVisibleWhileInteracting); b.AppendLine("Native auto-hide active: " + ((_taskbars.GetAppbarState() & NativeMethods.ABS_AUTOHIDE) != 0)); b.AppendLine("Top/side maximized gap corrections on last hide: " + _taskbars.LastGapCorrectionCount); + b.AppendLine("Foreground gap watcher corrections: " + _taskbars.ForegroundGapCorrectionCount); 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 8c648a21f95250635e6e90e49a226836d0c8070a Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:19:14 +1100 Subject: [PATCH 25/27] Sync foreground gap watcher diagnostics into setup payload --- bootstrap/payload/SlipperyContext.Diagnostics.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/payload/SlipperyContext.Diagnostics.cs b/bootstrap/payload/SlipperyContext.Diagnostics.cs index da824a1..8121cae 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.2-gapfix"); + b.AppendLine("Build: 1.0.3-gapwatch"); b.AppendLine("Runtime: " + Environment.Version); b.AppendLine("OS: " + Environment.OSVersion); b.AppendLine("Executable: " + Application.ExecutablePath); @@ -30,6 +30,7 @@ private void CopyDiagnostics() b.AppendLine("Keep visible while interacting: " + _preferencesStore.Current.KeepVisibleWhileInteracting); b.AppendLine("Native auto-hide active: " + ((_taskbars.GetAppbarState() & NativeMethods.ABS_AUTOHIDE) != 0)); b.AppendLine("Top/side maximized gap corrections on last hide: " + _taskbars.LastGapCorrectionCount); + b.AppendLine("Foreground gap watcher corrections: " + _taskbars.ForegroundGapCorrectionCount); 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 9239e6d3dcefe1992829cb5c6f7000772a14e964 Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:19:24 +1100 Subject: [PATCH 26/27] Bump gap watcher test to v1.0.3 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 6d7de6e..21e8796 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.2 +1.0.3 From 6cd15706b6b24686429b5dedf2bb7ae60887b94c Mon Sep 17 00:00:00 2001 From: KoBruh <42637159+KoBruh@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:19:32 +1100 Subject: [PATCH 27/27] Bump project version to v1.0.3 --- src/SlipperyTaskbar.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SlipperyTaskbar.csproj b/src/SlipperyTaskbar.csproj index a85a330..b6eacb0 100644 --- a/src/SlipperyTaskbar.csproj +++ b/src/SlipperyTaskbar.csproj @@ -13,8 +13,8 @@ true true false - 1.0.2 - 1.0.2.0 + 1.0.3 + 1.0.3.0 Slippery Taskbar Hide the Windows 11 taskbar until the Windows key or shell UI intentionally reveals it.