Handle first click on Zed window (#9553)

Fixes #4336
This commit is contained in:
Daniel Zhu
2024-03-25 10:52:18 -07:00
committed by GitHub
parent 5361a4d72d
commit 569a7234fd
9 changed files with 33 additions and 11 deletions
@@ -933,6 +933,7 @@ impl Dispatch<wl_pointer::WlPointer, ()> for WaylandClientState {
position: state.mouse_location,
modifiers: state.modifiers,
click_count: state.click_state.current_count,
first_mouse: false,
}),
);
}
@@ -218,6 +218,7 @@ impl X11Client {
position,
modifiers,
click_count: 1,
first_mouse: false,
}));
} else if event.detail >= 4 && event.detail <= 5 {
// https://stackoverflow.com/questions/15510472/scrollwheel-event-in-x11