Correct off-by-one error

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@18098 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-11-19 16:08:52 +00:00
parent 72938ea456
commit 6d61d85e11
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-11-19 Benhur Stein <benhur@inf.ufsm.br>
* Source/x11/XGServerEvent.m ([XGServer -processEvent:event]): Correct
off-by-one error.
2003-11-19 Adam Fedor <fedor@gnu.org>
* Source/x11/XGServer.m: Add some docs.

View file

@ -975,7 +975,7 @@ static inline int check_modifier (XEvent *xEvent, KeyCode key_code)
_command_pressed |= 1;
}
if (_command_keycodes[1]
&& check_modifier (&xEvent, _command_keycodes[2]))
&& check_modifier (&xEvent, _command_keycodes[1]))
{
_command_pressed = 2;
}