diff --git a/simpledisplay.d b/simpledisplay.d index a12bbf9..65e0db5 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -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?