tiling: Adjust mouse hover delays
This commit is contained in:
parent
bd276a2f23
commit
3a5bffdb5c
1 changed files with 6 additions and 4 deletions
|
|
@ -60,6 +60,8 @@ pub use self::blocker::*;
|
||||||
pub use self::grabs::*;
|
pub use self::grabs::*;
|
||||||
|
|
||||||
pub const ANIMATION_DURATION: Duration = Duration::from_millis(200);
|
pub const ANIMATION_DURATION: Duration = Duration::from_millis(200);
|
||||||
|
pub const MOUSE_ANIMATION_DELAY: Duration = Duration::from_millis(150);
|
||||||
|
pub const INTIAL_MOUSE_ANIMATION_DELAY: Duration = Duration::from_millis(500);
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
struct OutputData {
|
struct OutputData {
|
||||||
|
|
@ -2478,12 +2480,12 @@ impl TilingLayout {
|
||||||
let overdue = if let Some(instant) = instant {
|
let overdue = if let Some(instant) = instant {
|
||||||
match old_target_zone {
|
match old_target_zone {
|
||||||
TargetZone::InitialPlaceholder(_) => {
|
TargetZone::InitialPlaceholder(_) => {
|
||||||
Instant::now().duration_since(*instant).as_millis()
|
Instant::now().duration_since(*instant)
|
||||||
> 500
|
> INTIAL_MOUSE_ANIMATION_DELAY
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
Instant::now().duration_since(*instant).as_millis()
|
Instant::now().duration_since(*instant)
|
||||||
> 200
|
> MOUSE_ANIMATION_DELAY
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue