Fixup DISPATCH_HEADER type_flags to its parts

This commit is contained in:
Dr. Chat
2015-06-12 19:47:28 -05:00
parent 4c9cab4346
commit f96657ef7c
3 changed files with 22 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ void XEvent::InitializeNative(void* native_ptr, X_DISPATCH_HEADER& header) {
assert_null(native_handle_);
bool manual_reset;
switch ((header.type_flags >> 24) & 0xFF) {
switch (header.type) {
case 0x00: // EventNotificationObject (manual reset)
manual_reset = true;
break;