diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2023-06-01 13:23:26 +0300 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2023-06-01 13:23:26 +0300 |
| commit | 84b8dfe8cd190de33221f465a7059be6a30769f5 (patch) | |
| tree | ab7b9e7b537858a5aa6376be6b8355c723f0fdec /src/bar.rs | |
| parent | f11240cb1e30e494be840d2ecef8504dd8cea7ff (diff) | |
| download | i3bar-mango-84b8dfe8cd190de33221f465a7059be6a30769f5.tar.gz | |
small changes
Diffstat (limited to 'src/bar.rs')
| -rw-r--r-- | src/bar.rs | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -60,17 +60,8 @@ impl Bar { _y: f64, ) -> anyhow::Result<()> { if let Some(tag) = self.tags_btns.click(x) { - if let Some(wm_info_provider) = &mut ss.wm_info_provider { - match button { - PointerBtn::Left => { - wm_info_provider.left_click_on_tag(conn, self.output, seat, tag) - } - PointerBtn::Right => { - wm_info_provider.right_click_on_tag(conn, self.output, seat, tag) - } - _ => return Ok(()), - } - } + ss.wm_info_provider + .click_on_tag(conn, self.output, seat, tag, button); } else if let Some((name, instance)) = self.blocks_btns.click(x) { if let Some(cmd) = &mut ss.status_cmd { cmd.send_click_event(&i3bar_protocol::Event { |
