windows: Fix click bleeding through collab follow (#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>
This commit is contained in:
Anthony Eid
2025-11-02 07:35:11 +00:00
committed by GitHub
co-authored by Remco Smits
parent 548cdfde3a
commit d5421ba1a8
+2
View File
@@ -220,6 +220,8 @@ impl TitleBar {
.on_click({
let peer_id = collaborator.peer_id;
cx.listener(move |this, _, window, cx| {
cx.stop_propagation();
this.workspace
.update(cx, |workspace, cx| {
if is_following {