diff options
author | Matias Linares <matiaslina@openmailbox.org> | 2017-10-02 19:02:11 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@openmailbox.org> | 2017-10-02 19:02:11 -0300 |
commit | ed1b858cac9cf551d3fcf2e32b20bb8f65421bae (patch) | |
tree | 676a2cdfafb15751d3fc31e4a9a702f0034dfc8f /src/desktop.rs | |
parent | 037cfe7b9b6fabd41060cd6a7d1ae6c82263e4a4 (diff) | |
download | dotwm-ed1b858cac9cf551d3fcf2e32b20bb8f65421bae.tar.gz |
Fix focus on windows
Diffstat (limited to 'src/desktop.rs')
-rw-r--r-- | src/desktop.rs | 1 |
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 { |