aboutsummaryrefslogtreecommitdiff
path: root/src/dotwm.rs
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2015-11-15 21:21:23 -0300
committerMatias Linares <matiaslina@openmailbox.org>2015-11-15 21:21:23 -0300
commit1c3e06f29ad59c084c00725bf7041c2af126b22d (patch)
treed7e983109ca171e2174216a9df44034adcc96b6c /src/dotwm.rs
parent12af9d3ec0d55c258d10e73e8fe6a99f3c9f05ff (diff)
downloaddotwm-1c3e06f29ad59c084c00725bf7041c2af126b22d.tar.gz
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.
Diffstat (limited to 'src/dotwm.rs')
-rw-r--r--src/dotwm.rs4
1 files changed, 3 insertions, 1 deletions
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<XWindow>,
// Map with the keys as (key, mod)
cw_idx: usize,
- pub window_list: Vec<XWindow>,
}
/// DotWM state.