summaryrefslogtreecommitdiff
path: root/src/dotwm.rs
diff options
context:
space:
mode:
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![],
}
}