stfu warnings

This commit is contained in:
Adam D. Ruppe 2017-03-27 13:55:51 -04:00
parent e27b0b4f94
commit 7af25bb3f0
1 changed files with 2 additions and 1 deletions

View File

@ -1112,7 +1112,7 @@ class SimpleWindow : CapableOfHandlingNativeEvent {
XSync(XDisplayConnection.get, 0);
if(keyboard)
XSetInputFocus(XDisplayConnection.get, this.impl.window, RevertToParent, CurrentTime);
if(mouse)
if(mouse) {
if(auto res = XGrabPointer(XDisplayConnection.get, this.impl.window, false /* owner_events */,
EventMask.PointerMotionMask // FIXME: not efficient
| EventMask.ButtonPressMask
@ -1127,6 +1127,7 @@ class SimpleWindow : CapableOfHandlingNativeEvent {
} else {
// cool
}
}
} else version(Windows) {
// FIXME: keyboard?