From 05bfd598a060beafe1a20ff759e499987f1ce87b Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Mon, 9 Nov 2015 01:33:33 -0300 Subject: Focus handling. For now this have some bugs. Some complex programs (i.e. thunar, firefox) will spawn a lot of XCreateEvents and the last window it's not focused correctly. Also the enter notify should work on an input instead hovering the window --- src/safe_x11/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/safe_x11/window.rs') diff --git a/src/safe_x11/window.rs b/src/safe_x11/window.rs index 624fea4..d2fc9ea 100644 --- a/src/safe_x11/window.rs +++ b/src/safe_x11/window.rs @@ -50,7 +50,7 @@ impl XWindow { unsafe { xlib::XSetWindowBorderWidth(self.display, self.inner, size) }; } - pub fn set_boder_color>>(&self, color: T) { + pub fn set_border_color>>(&self, color: T) { let c = get_color(self.display, color); unsafe { XSetWindowBorder(self.display, self.inner, c); } } -- cgit v1.2.3-70-g09d2