From ed1b858cac9cf551d3fcf2e32b20bb8f65421bae Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Mon, 2 Oct 2017 19:02:11 -0300 Subject: Fix focus on windows --- src/desktop.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/desktop.rs b/src/desktop.rs index 20502e0..2e854ec 100644 --- a/src/desktop.rs +++ b/src/desktop.rs @@ -67,6 +67,7 @@ impl Desktop { //w.select_input(xlib::EnterWindowMask | xlib::ExposureMask | xlib::PointerMotionMask); w.select_input(xlib::EnterWindowMask | xlib::ExposureMask); self.window_list.push(w); + self.cw_idx = self.window_list.len() - 1; // Last windows get focus. self.focus_current_window(); } else { -- cgit v1.2.3-70-g09d2