From 18f9ae5dace07ed10bf50ca262f91d7c448cd507 Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Sun, 19 Sep 2021 12:03:26 -0700 Subject: [PATCH] build fixes --- src/bridge/events.rs | 2 +- src/cmd_line.rs | 2 +- src/window/window_wrapper/mouse_manager.rs | 9 ++------- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/bridge/events.rs b/src/bridge/events.rs index 4c5a1ff..506fe07 100644 --- a/src/bridge/events.rs +++ b/src/bridge/events.rs @@ -706,7 +706,7 @@ fn parse_win_float_pos(win_float_pos_arguments: Vec) -> Result Result<(), String> { no_fork: matches.is_present("nofork") || matches.is_present("verbosity"), no_idle: matches.is_present("noidle") || std::env::var("NEOVIDE_NOIDLE").is_ok(), - srgb: matches.is_present("srgb") || !std::env::var("NEOVIDE_NO_SRGB").is_ok(), + srgb: matches.is_present("srgb") || std::env::var("NEOVIDE_NO_SRGB").is_err(), geometry: parse_window_geometry(matches.value_of("geometry").map(|i| i.to_owned()))?, wsl: matches.is_present("wsl"), remote_tcp: matches.value_of("remote_tcp").map(|i| i.to_owned()), diff --git a/src/window/window_wrapper/mouse_manager.rs b/src/window/window_wrapper/mouse_manager.rs index 47feb27..729b579 100644 --- a/src/window/window_wrapper/mouse_manager.rs +++ b/src/window/window_wrapper/mouse_manager.rs @@ -200,7 +200,7 @@ impl MouseManager { }) .ok(); } - } + } } self.dragging = down; @@ -310,12 +310,7 @@ impl MouseManager { (delta.x as f32, delta.y as f32), ), Event::WindowEvent { - event: - WindowEvent::MouseInput { - button, - state, - .. - }, + event: WindowEvent::MouseInput { button, state, .. }, .. } => self.handle_pointer_transition(button, state == &ElementState::Pressed), _ => {}