mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 21:32:13 +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:
parent
b24082714e
commit
05b02e178b
@ -1,6 +1,6 @@
|
||||
# Hide
|
||||
|
||||
Hides the current window
|
||||
Hides (or minimizes, depending on the platform) the current window.
|
||||
|
||||
```lua
|
||||
return {
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user