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:
parent
9b0949b6fb
commit
0b019282c3
9 changed files with 108 additions and 85 deletions
|
@ -48,7 +48,6 @@ use std::{
|
|||
rc::Rc,
|
||||
slice, str,
|
||||
sync::Arc,
|
||||
time::Duration,
|
||||
};
|
||||
use time::UtcOffset;
|
||||
|
||||
|
@ -715,13 +714,6 @@ impl Platform for MacPlatform {
|
|||
"macOS"
|
||||
}
|
||||
|
||||
fn double_click_interval(&self) -> Duration {
|
||||
unsafe {
|
||||
let double_click_interval: f64 = msg_send![class!(NSEvent), doubleClickInterval];
|
||||
Duration::from_secs_f64(double_click_interval)
|
||||
}
|
||||
}
|
||||
|
||||
fn os_version(&self) -> Result<SemanticVersion> {
|
||||
unsafe {
|
||||
let process_info = NSProcessInfo::processInfo(nil);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue