Wayland: double click (#9608)

This PR builds off of an earlier version of
https://github.com/zed-industries/zed/pull/9595, rearranges some of the
logic, and removes an unused platform API.

Release Notes:

- N/A

---------

Co-authored-by: apricotbucket28 <agustin.nicolas.marcos@outlook.com>
This commit is contained in:
Mikayla Maki
2024-03-20 19:22:47 -07:00
committed by GitHub
co-authored by apricotbucket28
parent 9b0949b6fb
commit 0b019282c3
9 changed files with 108 additions and 85 deletions
@@ -638,11 +638,6 @@ impl Platform for WindowsPlatform {
UtcOffset::from_hms(hours as _, minutes as _, 0).unwrap()
}
fn double_click_interval(&self) -> Duration {
let millis = unsafe { GetDoubleClickTime() };
Duration::from_millis(millis as _)
}
// todo(windows)
fn path_for_auxiliary_executable(&self, name: &str) -> Result<PathBuf> {
Err(anyhow!("not yet implemented"))
+1 -1
View File
@@ -858,7 +858,7 @@ impl WindowsWindowInner {
let width = rect.right - rect.left;
let height = rect.bottom - rect.top;
// this will emit `WM_SIZE` and `WM_MOVE` right here
// even before this funtion returns
// even before this function returns
// the new size is handled in `WM_SIZE`
unsafe {
SetWindowPos(