From 1c3e06f29ad59c084c00725bf7041c2af126b22d Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sun, 15 Nov 2015 21:21:23 -0300 Subject: Clean of zombie process. The spawn of process within the exec_cmd function now are handled by a new function (collect_zombies). For reference, this code was taken from the _zombie_ crate. --- src/dotwm.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/dotwm.rs') diff --git a/src/dotwm.rs b/src/dotwm.rs index e94b17f..d528899 100644 --- a/src/dotwm.rs +++ b/src/dotwm.rs @@ -29,10 +29,12 @@ unsafe extern "C" fn error_handler(d: *mut Display, evptr: *mut XErrorEvent) -> } pub struct DotWM { + /// Reference to the X display. pub display: *mut Display, + /// References to all the windows. + pub window_list: Vec, // Map with the keys as (key, mod) cw_idx: usize, - pub window_list: Vec, } /// DotWM state. -- cgit v1.2.3-70-g09d2