Skip to content

Commit aa5bb9f

Browse files
committed
Fixing mouse wheel event bugs on Linux.
Resolves kwhat/jnativehook#397
1 parent 44cc545 commit aa5bb9f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/x11/post_event.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -286,14 +286,6 @@ static int post_mouse_wheel_event(uiohook_event * const event) {
286286
.same_screen = True
287287
};
288288

289-
// Move the pointer to the specified position.
290-
#ifdef USE_XTEST
291-
XTestFakeMotionEvent(btn_event.display, -1, btn_event.x, btn_event.y, 0);
292-
#else
293-
XWarpPointer(btn_event.display, None, btn_event.subwindow, 0, 0, 0, 0, btn_event.x, btn_event.y);
294-
XFlush(btn_event.display);
295-
#endif
296-
297289
#ifndef USE_XTEST
298290
// FIXME This is still not working correctly, clicking on other windows does not yield focus.
299291
while (btn_event.subwindow != None)

0 commit comments

Comments
 (0)