Skip to content

Commit d5421ba

Browse files
windows: Fix click bleeding through collab follow (zed-industries#41726)
On Windows, clicking on a collab user icon in the title bar would minimize/expand Zed because the click would bleed through to the title bar. This PR fixes this by stopping propagation. #### Before (On MacOS with double clicks to mimic the same behavior) https://github.com/user-attachments/assets/5a91f7ff-265a-4575-aa23-00b8d30daeed #### After (On MacOS with double clicks to mimic the same behavior) https://github.com/user-attachments/assets/e9fcb98f-4855-4f21-8926-2d306d256f1c Release Notes: - Windows: Fix clicking on user icon in title bar to follow minimizing/expanding Zed Co-authored-by: Remco Smits <djsmits12@gmail.com>
1 parent 548cdfd commit d5421ba

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

crates/title_bar/src/collab.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ impl TitleBar {
220220
.on_click({
221221
let peer_id = collaborator.peer_id;
222222
cx.listener(move |this, _, window, cx| {
223+
cx.stop_propagation();
224+
223225
this.workspace
224226
.update(cx, |workspace, cx| {
225227
if is_following {

0 commit comments

Comments
 (0)