1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

window: fix Hide action on Windows

This was hiding the window completely with no way to show it again(!).
Change it instead to minimize, which was the intent.

refs: #296
This commit is contained in:
Wez Furlong 2020-10-14 08:40:42 -07:00
parent b24082714e
commit 05b02e178b
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Hide
Hides the current window
Hides (or minimizes, depending on the platform) the current window.
```lua
return {

View File

@ -261,7 +261,7 @@ fn schedule_show_window(hwnd: HWindow, show: bool) {
// to lock inner, so we avoid locking it ourselves here
promise::spawn::spawn(async move {
unsafe {
ShowWindow(hwnd.0, if show { SW_NORMAL } else { SW_HIDE });
ShowWindow(hwnd.0, if show { SW_NORMAL } else { SW_MINIMIZE });
}
})
.detach();