commit 11dbf5e86aacfb637429ac3d5796701a4524e299
parent 216a42d55ffb3742b28bec13f4d0b8cacaf048b3
Author: deurzen <m.deurzen@tum.de>
Date: Wed, 24 Mar 2021 18:15:32 +0100
changes debug output
Diffstat:
2 files changed, 21 insertions(+), 9 deletions(-)
diff --git a/src/core/client.rs b/src/core/client.rs
@@ -148,7 +148,10 @@ impl<'client> Client {
}
#[inline]
- pub fn name_matches(&self, match_method: MatchMethod<&'static str>) -> bool {
+ pub fn name_matches(
+ &self,
+ match_method: MatchMethod<&'static str>,
+ ) -> bool {
match match_method {
MatchMethod::Equals(comp) => &*self.name.borrow() == comp,
MatchMethod::Contains(comp) => (&*self.name.borrow()).contains(comp),
@@ -169,7 +172,10 @@ impl<'client> Client {
}
#[inline]
- pub fn class_matches(&self, match_method: MatchMethod<&'static str>) -> bool {
+ pub fn class_matches(
+ &self,
+ match_method: MatchMethod<&'static str>,
+ ) -> bool {
match match_method {
MatchMethod::Equals(comp) => &*self.class.borrow() == comp,
MatchMethod::Contains(comp) => (&*self.class.borrow()).contains(comp),
@@ -190,7 +196,10 @@ impl<'client> Client {
}
#[inline]
- pub fn instance_matches(&self, match_method: MatchMethod<&'static str>) -> bool {
+ pub fn instance_matches(
+ &self,
+ match_method: MatchMethod<&'static str>,
+ ) -> bool {
match match_method {
MatchMethod::Equals(comp) => &*self.instance.borrow() == comp,
MatchMethod::Contains(comp) => (&*self.instance.borrow()).contains(comp),
@@ -461,7 +470,9 @@ impl<'client> Client {
#[inline]
pub fn is_free(&self) -> bool {
- self.floating.borrow().clone() || self.disowned.borrow().clone() || !self.managed.borrow().clone()
+ self.floating.borrow().clone()
+ || self.disowned.borrow().clone()
+ || !self.managed.borrow().clone()
}
#[inline]
@@ -655,7 +666,8 @@ impl<'client> Client {
#[inline]
pub fn expect_unmap(&self) {
- self.expected_unmap_count.replace(self.expected_unmap_count.borrow().clone() + 1);
+ self.expected_unmap_count
+ .replace(self.expected_unmap_count.borrow().clone() + 1);
}
#[inline]
diff --git a/src/core/model.rs b/src/core/model.rs
@@ -293,8 +293,6 @@ impl<'a> Model<'a> {
}
fn acquire_partitions(&mut self) {
- info!("acquiring partitions");
-
let partitions: Vec<Partition> = self
.conn
.connected_outputs()
@@ -310,6 +308,7 @@ impl<'a> Model<'a> {
return;
}
+ info!("acquired partitions: {:#?}", partitions);
self.partitions = Cycle::new(partitions, false);
}
@@ -724,7 +723,7 @@ impl<'a> Model<'a> {
.from_absolute_inner_center(geometry.dim);
}
- let parent_zone = self.workspaces[workspace]
+ let parent_zone = self.workspaces[workspace]
.active_spawn_zone()
.map(|id| self.zone_manager.nearest_cycle(id));
@@ -798,7 +797,8 @@ impl<'a> Model<'a> {
self.pid_map.insert(pid, window);
}
- self.conn.set_icccm_window_state(window, IcccmWindowState::Normal);
+ self.conn
+ .set_icccm_window_state(window, IcccmWindowState::Normal);
self.client_map.insert(window, client);
self.frame_map.insert(frame, window);
self.window_map.insert(window, frame);