aboutsummaryrefslogtreecommitdiff
path: root/src/window.rs
diff options
context:
space:
mode:
authorTuomas Siipola <siiptuo@kapsi.fi>2017-02-22 21:52:37 +0200
committerJoe Wilm <jwilm@users.noreply.github.com>2017-02-22 14:49:29 -0800
commit7bb49fabfa0d2686e4e74c1c11362d6b6aade1ca (patch)
tree6d8512f2bc7d75be76d656a8d019e9e5ed90204e /src/window.rs
parent418df72a077cd85b14cbede78e281bb224515a40 (diff)
downloadalacritty-7bb49fabfa0d2686e4e74c1c11362d6b6aade1ca.tar.gz
alacritty-7bb49fabfa0d2686e4e74c1c11362d6b6aade1ca.zip
Add hide cursor when typing option
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/window.rs b/src/window.rs
index a5f6e2c6..b90c242d 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -288,6 +288,13 @@ impl Window {
pub fn set_title(&self, title: &str) {
self.glutin_window.set_title(title);
}
+
+ /// Set cursor visible
+ #[inline]
+ pub fn set_cursor_visible(&self, show: bool) {
+ self.glutin_window.set_cursor(if show { glutin::MouseCursor::Default }
+ else { glutin::MouseCursor::NoneCursor });
+ }
}
impl Proxy {