summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2017-10-02 19:02:11 -0300
committerMatias Linares <matiaslina@openmailbox.org>2017-10-02 19:02:11 -0300
commited1b858cac9cf551d3fcf2e32b20bb8f65421bae (patch)
tree676a2cdfafb15751d3fc31e4a9a702f0034dfc8f
parent037cfe7b9b6fabd41060cd6a7d1ae6c82263e4a4 (diff)
downloaddotwm-ed1b858cac9cf551d3fcf2e32b20bb8f65421bae.tar.gz
Fix focus on windows
-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 {