aboutsummaryrefslogtreecommitdiff
path: root/src/window.rs
diff options
context:
space:
mode:
authorJosh Leeb-du Toit <josh.leebdutoit@gmail.com>2018-07-22 10:38:53 +1000
committerChristian Duerr <chrisduerr@users.noreply.github.com>2018-07-22 00:38:53 +0000
commitdbcb5885adb1f0b23c29838ef8dd837212322409 (patch)
tree7fb3a64c39efd2693cac49885c9cc49cd9a28ac7 /src/window.rs
parent0d5edb7a7a7a33369bc2c1e5cc007edbd6fcf15f (diff)
downloadalacritty-dbcb5885adb1f0b23c29838ef8dd837212322409.tar.gz
alacritty-dbcb5885adb1f0b23c29838ef8dd837212322409.zip
Add binding action for hiding the window
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs5
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 {