aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2015-02-03 22:17:59 +1100
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>2015-02-03 22:17:59 +1100
commit4632e8315620e3687637c0518d51065c242c4b75 (patch)
tree448ad8f630e7f51d7bc0b1109b9b83de399bebb9
parent9b530cdf40f270f798c472309e61f2d48361bc29 (diff)
downloadglutin-4632e8315620e3687637c0518d51065c242c4b75.tar.gz
glutin-4632e8315620e3687637c0518d51065c242c4b75.zip
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)));