diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-03-28 00:32:35 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-03-28 00:32:35 +0300 |
| commit | f8c4d6a5f1bd4bcaee43ba3e1373465cd960cdc3 (patch) | |
| tree | 10e9d52f05b476f83a3ee88a87a7c8f7aca9eca6 /src/app/input.rs | |
| parent | 787786c62009f6c27a0091b61017ae5ad5c95c0e (diff) | |
feat: add per-agent sound overrides
Diffstat (limited to 'src/app/input.rs')
| -rw-r--r-- | src/app/input.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/app/input.rs b/src/app/input.rs index b9a52bda..c91722f7 100644 --- a/src/app/input.rs +++ b/src/app/input.rs @@ -373,12 +373,7 @@ impl AppState { mouse.row - info.inner_rect.y, mouse.column - info.inner_rect.x, ); - self.selection = Some(Selection::anchor( - info.id, - row, - col, - info.inner_rect, - )); + self.selection = Some(Selection::anchor(info.id, row, col, info.inner_rect)); if let Some(ws) = self.active.and_then(|i| self.workspaces.get_mut(i)) { if ws.layout.focused() != info.id { @@ -434,10 +429,7 @@ impl AppState { if self.drag.take().is_some() { // Drag ended } else { - let was_click = self - .selection - .as_ref() - .is_some_and(|s| s.was_just_click()); + let was_click = self.selection.as_ref().is_some_and(|s| s.was_just_click()); if was_click { self.selection = None; } else { |
