aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/desktop.rs1
1 files changed, 1 insertions, 0 deletions
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 {