diff options
author | Josh Leeb-du Toit <josh.leebdutoit@gmail.com> | 2018-07-22 10:38:53 +1000 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-07-22 00:38:53 +0000 |
commit | dbcb5885adb1f0b23c29838ef8dd837212322409 (patch) | |
tree | 7fb3a64c39efd2693cac49885c9cc49cd9a28ac7 /src/window.rs | |
parent | 0d5edb7a7a7a33369bc2c1e5cc007edbd6fcf15f (diff) | |
download | alacritty-dbcb5885adb1f0b23c29838ef8dd837212322409.tar.gz alacritty-dbcb5885adb1f0b23c29838ef8dd837212322409.zip |
Add binding action for hiding the window
Diffstat (limited to 'src/window.rs')
-rw-r--r-- | src/window.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/window.rs b/src/window.rs index 1903360f..51a42232 100644 --- a/src/window.rs +++ b/src/window.rs @@ -379,6 +379,11 @@ impl Window { pub fn get_window_id(&self) -> Option<usize> { None } + + /// Hide the window + pub fn hide(&self) { + self.window.hide(); + } } pub trait OsExtensions { |