mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
Merge pull request #154 from tomaka/fix-warning-x11
Fix deprecation warning on X11
This commit is contained in:
@@ -371,10 +371,10 @@ impl Window {
|
||||
let mut events = Vec::new();
|
||||
|
||||
loop {
|
||||
use std::num::Bounded;
|
||||
use std::num::Int;
|
||||
|
||||
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 {
|
||||
let res = unsafe { ffi::XCheckTypedEvent(self.display, ffi::ClientMessage, &mut xev) };
|
||||
|
||||
Reference in New Issue
Block a user