aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2014-12-02 20:44:38 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2014-12-02 20:44:38 +0100
commit7b84121500cd74310cb554151ab0aac6d6d9a714 (patch)
treef6c580c6932e2ffeaf31436b94956d0bad32f426 /src/x11
parentcfe456468882503c232aa91f48c778e8d0caba34 (diff)
downloadglutin-7b84121500cd74310cb554151ab0aac6d6d9a714.tar.gz
glutin-7b84121500cd74310cb554151ab0aac6d6d9a714.zip
Fix deprecation warning on X11
Diffstat (limited to 'src/x11')
-rw-r--r--src/x11/window/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs
index 72c7133..e94b5c9 100644
--- a/src/x11/window/mod.rs
+++ b/src/x11/window/mod.rs
@@ -370,10 +370,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) };