aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-02-03 12:31:55 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-02-03 12:31:55 +0100
commit03e9d78b3a0b14c14c786f7417c8b5c4db22d644 (patch)
tree881186cc4cbdce4465218ce590e4906551299207
parent7ced7cb67403817c1834006dc0704236d701c999 (diff)
parent4632e8315620e3687637c0518d51065c242c4b75 (diff)
downloadglutin-03e9d78b3a0b14c14c786f7417c8b5c4db22d644.tar.gz
glutin-03e9d78b3a0b14c14c786f7417c8b5c4db22d644.zip
Merge pull request #250 from bjz/osx-window
Add tempory fix for #248
-rw-r--r--src/cocoa/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cocoa/mod.rs b/src/cocoa/mod.rs
index bbdb8ea..2ff4ff9 100644
--- a/src/cocoa/mod.rs
+++ b/src/cocoa/mod.rs
@@ -438,7 +438,8 @@ impl Window {
NSRightMouseDown => { events.push_back(MouseInput(Pressed, RightMouseButton)); },
NSRightMouseUp => { events.push_back(MouseInput(Released, RightMouseButton)); },
NSMouseMoved => {
- let window_point = event.locationInWindow();
+ let window_point: NSPoint = msg_send()(event, selector("locationInWindow"));
+ // let window_point = event.locationInWindow();
let window: id = msg_send()(event, selector("window"));
let view_point = if window == 0 {
let window_rect = self.window.convertRectFromScreen_(NSRect::new(window_point, NSSize::new(0.0, 0.0)));