mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 14:21:31 +11:00
Fix deprecation warning on X11
This commit is contained in:
parent
cfe4564688
commit
7b84121500
|
@ -370,10 +370,10 @@ impl Window {
|
||||||
let mut events = Vec::new();
|
let mut events = Vec::new();
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
use std::num::Bounded;
|
use std::num::Int;
|
||||||
|
|
||||||
let mut xev = unsafe { mem::uninitialized() };
|
let mut xev = unsafe { mem::uninitialized() };
|
||||||
let res = unsafe { ffi::XCheckMaskEvent(self.display, Bounded::max_value(), &mut xev) };
|
let res = unsafe { ffi::XCheckMaskEvent(self.display, Int::max_value(), &mut xev) };
|
||||||
|
|
||||||
if res == 0 {
|
if res == 0 {
|
||||||
let res = unsafe { ffi::XCheckTypedEvent(self.display, ffi::ClientMessage, &mut xev) };
|
let res = unsafe { ffi::XCheckTypedEvent(self.display, ffi::ClientMessage, &mut xev) };
|
||||||
|
|
Loading…
Reference in a new issue