aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-12-02 20:48:15 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-12-02 20:48:15 +0100
commit6652cd0bdfa8c8db90ed01afaccad40f17228c43 (patch)
tree46463133066b833e5c201a0379f793b1f582becd /src/x11
parentf141e12e1f3442c7a1be11df74e9722420003e4a (diff)
parent7b84121500cd74310cb554151ab0aac6d6d9a714 (diff)
downloadglutin-6652cd0bdfa8c8db90ed01afaccad40f17228c43.tar.gz
glutin-6652cd0bdfa8c8db90ed01afaccad40f17228c43.zip
Merge pull request #154 from tomaka/fix-warning-x11
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 206b0b2..7bce19f 100644
--- a/src/x11/window/mod.rs
+++ b/src/x11/window/mod.rs
@@ -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) };