From e1ec354306742a5804a20e2651cf49945cd17287 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sat, 28 Nov 2015 22:16:43 -0300 Subject: Better socket handling The socket interface now allows almost everything that vould be done by the internals of the window manager. Also the Window manager now closes fine (on a success exit). --- src/dotwm.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dotwm.rs') diff --git a/src/dotwm.rs b/src/dotwm.rs index e531f0a..cd909b5 100644 --- a/src/dotwm.rs +++ b/src/dotwm.rs @@ -35,6 +35,8 @@ pub struct DotWM { pub display: *mut Display, /// References to all the windows. pub window_list: Vec, + /// Check if the window manager needs to end. + pub finish: bool, // Map with the keys as (key, mod) cw_idx: usize, } @@ -56,6 +58,7 @@ impl DotWM { DotWM { display: d, cw_idx: 0, + finish: false, window_list: vec![], } } -- cgit v1.2.3-70-g09d2