Commit 0969c4b 1 parent a88b25e commit 0969c4b Copy full SHA for 0969c4b
File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2384,17 +2384,16 @@ static void process_xevent(Ghandles * g)
2384
2384
XIEvent * xi_event = cookie -> data ; // from test_xi2.c in xinput cli utility
2385
2385
2386
2386
XIDeviceEvent * xi_device = (XIDeviceEvent * )xi_event ;
2387
- XILeaveEvent * xi_leave = (XILeaveEvent * )xi_event ;
2388
2387
switch (xi_event -> evtype ) {
2389
2388
// ideally raw input events are better, but I'm relying on X server's built-in event filtering and routing feature here
2390
2389
case XI_KeyPress :
2391
2390
case XI_KeyRelease :
2392
- if (xi_device && xi_device -> flags & XIKeyRepeat ) break ; // don't send key repeat events
2391
+ if (xi_device && ( xi_device -> flags & XIKeyRepeat ) ) break ; // don't send key repeat events
2393
2392
process_xievent_keypress (g , xi_device );
2394
2393
break ;
2395
2394
case XI_FocusIn :
2396
2395
case XI_FocusOut :
2397
- process_xievent_focus (g , xi_leave );
2396
+ process_xievent_focus (g , ( XILeaveEvent * ) xi_event );
2398
2397
break ;
2399
2398
}
2400
2399
XFreeEventData (g -> display , cookie );
You can’t perform that action at this time.
0 commit comments