include: fix enum EventType declaration.
Having EventType after the enum declares a variable. silly me. Reported-by: Aaron Plattner Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
994f7a1c81
commit
1ae8332d64
|
@ -44,7 +44,7 @@
|
|||
* Note: Keep KeyPress to Motion aligned with the core events.
|
||||
* Keep ET_Raw* in the same order as KeyPress - Motion
|
||||
*/
|
||||
enum {
|
||||
enum EventType {
|
||||
ET_KeyPress = 2,
|
||||
ET_KeyRelease,
|
||||
ET_ButtonPress,
|
||||
|
@ -67,7 +67,7 @@ enum {
|
|||
ET_RawButtonRelease,
|
||||
ET_RawMotion,
|
||||
ET_Internal = 0xFF /* First byte */
|
||||
} EventType;
|
||||
};
|
||||
|
||||
#define CHECKEVENT(ev) if (ev && ((InternalEvent*)(ev))->any.header != 0xFF) \
|
||||
FatalError("Wrong event type %d.\n", \
|
||||
|
|
Loading…
Reference in New Issue
Block a user