diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2023-06-01 13:53:04 +0300 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2023-06-01 13:53:04 +0300 |
| commit | 0fa82a3280083c7ef098609990a7177625a4cbd4 (patch) | |
| tree | e791c533ec0a3e19e707df2d87d1695d5859e0b6 | |
| parent | 44fa43c97bb7a11311c7f860eb8cb2f94ace5216 (diff) | |
| download | i3bar-mango-0fa82a3280083c7ef098609990a7177625a4cbd4.tar.gz | |
hyprland: fix click-to-focus
| -rw-r--r-- | src/wm_info_provider/ext_workspace_unstable.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wm_info_provider/ext_workspace_unstable.rs b/src/wm_info_provider/ext_workspace_unstable.rs index dbf6bf7..7b482da 100644 --- a/src/wm_info_provider/ext_workspace_unstable.rs +++ b/src/wm_info_provider/ext_workspace_unstable.rs @@ -8,6 +8,7 @@ use crate::protocol::*; use crate::state::State; pub struct ExtWorkspaceUnstable { + manager: ZextWorkspaceManagerV1, groups: Vec<Group>, known_outputs: Vec<WlOutput>, callback: WmInfoCallback, @@ -34,8 +35,8 @@ impl ExtWorkspaceUnstable { globals: &Globals, callback: WmInfoCallback, ) -> Option<Self> { - let _: ZextWorkspaceManagerV1 = globals.bind_with_cb(conn, 1..=1, manager_cb).ok()?; Some(Self { + manager: globals.bind_with_cb(conn, 1..=1, manager_cb).ok()?, groups: Vec::new(), known_outputs: Vec::new(), callback, @@ -74,6 +75,7 @@ impl ExtWorkspaceUnstable { else { return }; ws.workspace_handle.activate(conn); + self.manager.commit(conn); } } |
