#1358·glazewm

[Bug] Clicking native minimize can make windows disappear permanently until manually uncloaked via IApplicationView

Author: VsxbambooCreated Apr 5, 2026Updated Sep 19, 2026
Labelstype: bug

Describe the bug

Describe the bug

On Windows 11, after updating to a recent GlazeWM version, some applications can disappear completely when I click the app's native minimize button.

This happened to me with:

  • Obsidian
  • Windows Terminal / cmd tabs hosted inside Windows Terminal

What makes this worse is:

  • the app process is still running
  • the window disappears from the taskbar
  • switching all workspaces does not bring it back
  • wm-redraw and wm-reload-config do not bring it back
  • even after exiting GlazeWM, the window still does not come back normally

So this does not look like a normal minimize. It looks more like the window gets put into a cloaked / hidden shell state and never gets properly restored.

Reproduction

In my case, the easiest repro is:

  1. Run GlazeWM on Windows 11
  2. Open Obsidian or Windows Terminal
  3. Click the window's native minimize button in the title bar
  4. The window disappears completely
  5. The process is still visible in Task Manager
  6. The window is not recoverable by normal means

What I tried

I tried all of the following and none restored the missing window:

  • switching through all workspaces
  • wm-redraw
  • wm-reload-config
  • exiting GlazeWM entirely
  • normal ShowWindow / restore style recovery attempts from PowerShell

Important finding

For Windows Terminal specifically, I found that the missing visible window was not the cmd.exe process itself, but a top-level window owned by WindowsTerminal with class:

  • CASCADIA_HOSTING_WINDOW_CLASS

The only thing that successfully restored the missing window was:

  1. enumerate top-level windows
  2. locate the missing window by title / class / hwnd
  3. get IApplicationView for that HWND through IApplicationViewCollection
  4. call SetCloak(1, 0)
  5. then call ShowWindowAsync(SW_RESTORE) / ShowWindowAsync(SW_SHOW)

So at least in this case, simple Win32 restore/show was not enough. The window only came back after using the same shell-level cloak/uncloak mechanism.

This makes me think GlazeWM may be leaving some windows cloaked in a way that is not reversed properly when minimizing/restoring certain apps.

Why I think this may be related to GlazeWM's cloak behavior

My config uses:

yaml
general:
  hide_method: 'cloak'
  show_all_in_taskbar: false

And once the problem happens, the window behaves more like a cloaked shell window than a normally minimized window.

Workaround

The only workaround I found is a PowerShell recovery script that:

  • enumerates top-level windows
  • finds the hidden target window
  • uses IApplicationView.SetCloak(1, 0) to uncloak it
  • then restores/shows it

If helpful, I can post the exact PowerShell script I used.

Expected behavior

Clicking the native minimize button should:

  • either minimize the window normally
  • or allow the window to be restored normally afterwards

It should never leave the window in a state where:

  • the process is still alive
  • the window is gone from the taskbar
  • GlazeWM exit does not restore it
  • only manual shell COM uncloaking can recover it

Environment

  • Windows 11

  • GlazeWM:

  • Affected apps observed:

    • Obsidian
    • Windows Terminal / cmd hosted inside Windows Terminal

Reproduction

In my case, the easiest repro is:

Run GlazeWM on Windows 11
Open Obsidian or Windows Terminal
Click the window's native minimize button in the title bar
The window disappears completely
The process is still visible in Task Manager
The window is not recoverable by normal means

Stack trace or error logs (if applicable)

bash

Version number

v3.10.1