mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 23:42:16 +00:00
Fix an issue where the X11 backend could use incorrect modifier key
settings. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27358 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
39076b64a9
commit
f45b5b41a2
2 changed files with 15 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-12-19 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/x11/XGServerEvent.m (check_modifier): Fix an issue where
|
||||
modifier key settings could be set incorrectly.
|
||||
|
||||
2008-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||
|
||||
* All GNUmakefiles: removed GNUSTEP_CORE_SOFTWARE=YES and
|
||||
|
@ -10,13 +15,13 @@
|
|||
* All GNUmakefiles: added GNUSTEP_CORE_SOFTWARE=YES at the
|
||||
beginning.
|
||||
* GNUmakefile: Export GNUSTEP_CORE_SOFTWARE to reduce chances of a
|
||||
problem if a GNUmakefile in a subdirectory is missing it.
|
||||
problem if a GNUmakefile in a subdirectory is missing it.
|
||||
|
||||
2008-12-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/winlib/WIN32FontInfo.m (-coveredCharacterSet): Set cbThis
|
||||
element of GLYPHSET structure before calling Windows funtion.
|
||||
|
||||
|
||||
2008-12-17 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Tools/gpbs.m: Remove use of private method for connection keepalive.
|
||||
|
|
|
@ -146,10 +146,14 @@ static int check_modifier (XEvent *xEvent, KeySym key_sym)
|
|||
int by,bi;
|
||||
int key_code = XKeysymToKeycode(xEvent->xkeymap.display, key_sym);
|
||||
|
||||
by = key_code / 8;
|
||||
bi = key_code % 8;
|
||||
key_vector = xEvent->xkeymap.key_vector;
|
||||
return (key_vector[by] & (1 << bi));
|
||||
if (key_code != NoSymbol)
|
||||
{
|
||||
by = key_code / 8;
|
||||
bi = key_code % 8;
|
||||
key_vector = xEvent->xkeymap.key_vector;
|
||||
return (key_vector[by] & (1 << bi));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@interface XGServer (WindowOps)
|
||||
|
|
Loading…
Reference in a new issue