mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 14:49:07 -04:00
committed by
GitHub
parent
fa10ca1764
commit
f3fb2fe3a6
@@ -250,9 +250,7 @@ impl XConnection {
|
|||||||
// Store the timestamp in the slot if it's greater than the last one.
|
// Store the timestamp in the slot if it's greater than the last one.
|
||||||
let mut last_timestamp = self.timestamp.load(Ordering::Relaxed);
|
let mut last_timestamp = self.timestamp.load(Ordering::Relaxed);
|
||||||
loop {
|
loop {
|
||||||
let wrapping_sub = |a: xproto::Timestamp, b: xproto::Timestamp| (a as i32) - (b as i32);
|
if (timestamp as i32).wrapping_sub(last_timestamp as i32) <= 0 {
|
||||||
|
|
||||||
if wrapping_sub(timestamp, last_timestamp) <= 0 {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,3 +55,4 @@ changelog entry.
|
|||||||
- On Redox, handle `EINTR` when reading from `event_socket` instead of panicking.
|
- On Redox, handle `EINTR` when reading from `event_socket` instead of panicking.
|
||||||
- On Wayland, switch from using the `ahash` hashing algorithm to `foldhash`.
|
- On Wayland, switch from using the `ahash` hashing algorithm to `foldhash`.
|
||||||
- On macOS, fix borderless game presentation options not sticking after switching spaces.
|
- On macOS, fix borderless game presentation options not sticking after switching spaces.
|
||||||
|
- On X11, fix debug mode overflow panic in `set_timestamp`.
|
||||||
|
|||||||
Reference in New Issue
Block a user