Skip to content

Commit

Permalink
Fix bug that caused synthentic events to be sent before focus had ret…
Browse files Browse the repository at this point in the history
…urned to the current window if the modifier key was released before the key being modified.
  • Loading branch information
kentonv committed Dec 23, 2013
1 parent 943d55a commit 41f27db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unix/xdq.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ int main(int argc, char* argv[]) {
down = event;
state = 1;
XQueryKeymap(display, keysAtPress);
} else if (state == 1 && event.type == KeyRelease) {
} else if (state == 1 && event.type == KeyRelease &&
event.xkey.keycode == down.xkey.keycode) {
up = event;
state = 2;
}
Expand Down

0 comments on commit 41f27db

Please sign in to comment.