summaryrefslogtreecommitdiff
path: root/src/wm_info_provider.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wm_info_provider.rs')
-rw-r--r--src/wm_info_provider.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wm_info_provider.rs b/src/wm_info_provider.rs
index d598234..67e5f83 100644
--- a/src/wm_info_provider.rs
+++ b/src/wm_info_provider.rs
@@ -47,6 +47,9 @@ pub trait WmInfoProvider: Any {
fn get_mode_name(&self, _: &Output) -> Option<String> {
None
}
+ fn get_focused_window(&self, _: &Output) -> Option<FocusedWindow> {
+ None
+ }
fn click_on_tag(
&mut self,
@@ -83,6 +86,12 @@ pub fn bind(conn: &mut Connection<State>, config: &WmConfig) -> Box<dyn WmInfoPr
Box::new(DummyInfoProvider)
}
+#[derive(Debug, Clone, PartialEq)]
+pub struct FocusedWindow {
+ pub app_id: String,
+ pub title: String,
+}
+
#[derive(Debug)]
pub struct Tag {
pub id: u32,