Skip to content

Commit

Permalink
xkb: remove IsKeypadKey define, only used in two places.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hutterer <[email protected]>
Reviewed-by: Fernando Carrijo <[email protected]>
Signed-off-by: Keith Packard <[email protected]>
  • Loading branch information
whot authored and keith-packard committed Jan 24, 2010
1 parent c8076f3 commit f37799c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions include/xkbsrv.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,6 @@ extern _X_EXPORT int DeviceButtonPress,DeviceButtonRelease;
#define _XkbIsPressEvent(t) (((t)==KeyPress)||((t)==DeviceKeyPress))
#define _XkbIsReleaseEvent(t) (((t)==KeyRelease)||((t)==DeviceKeyRelease))

#undef IsKeypadKey
#define IsKeypadKey(s) XkbKSIsKeypad(s)

#define Status int

#ifndef True
Expand Down
2 changes: 1 addition & 1 deletion xkb/XKBMisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ BOOL replicated = FALSE;
}
}
if (((protected&(1<<i))==0)&&(types_inout[i]==XkbTwoLevelIndex)) {
if (IsKeypadKey(syms[0])||IsKeypadKey(syms[1]))
if (XkbKSIsKeypad(syms[0])||XkbKSIsKeypad(syms[1]))
types_inout[i]= XkbKeypadIndex;
else {
KeySym upper,lower;
Expand Down

0 comments on commit f37799c

Please sign in to comment.