Skip to content

Commit

Permalink
Process xinput raw events too
Browse files Browse the repository at this point in the history
  • Loading branch information
iacore committed Feb 23, 2022
1 parent 86eb904 commit 60ee007
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gui-daemon/xside.c
Original file line number Diff line number Diff line change
Expand Up @@ -2318,8 +2318,15 @@ static void process_xevent_xembed(Ghandles * g, const XClientMessageEvent * ev)
}

static void process_xievent(Ghandles * g, XIDeviceEvent event) {
switch (event->evtype)
switch (event.evtype)
{
case XI_RawButtonPress:
case XI_RawButtonRelease:
case XI_RawMotion:
case XI_RawKeyPress:
case XI_RawKeyRelease:
// TODO: handle raw events, no flags on raw events
break;
case XI_KeyPress:
case XI_KeyRelease:
printf(" flags: %s\n", (event->flags & XIKeyRepeat) ? "repeat" : "");
Expand Down

0 comments on commit 60ee007

Please sign in to comment.