aboutsummaryrefslogtreecommitdiff
path: root/src/dotwm.rs
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2015-11-28 22:16:43 -0300
committerMatias Linares <matiaslina@openmailbox.org>2015-11-28 22:16:43 -0300
commite1ec354306742a5804a20e2651cf49945cd17287 (patch)
tree7f607096fa43f96680d933b7a046f603227e566c /src/dotwm.rs
parent901d03b3a8ac0b7d8533fd9a8d43238d665d9cb8 (diff)
downloaddotwm-e1ec354306742a5804a20e2651cf49945cd17287.tar.gz
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).
Diffstat (limited to 'src/dotwm.rs')
-rw-r--r--src/dotwm.rs3
1 files changed, 3 insertions, 0 deletions
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<XWindow>,
+ /// 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![],
}
}