Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11window.c @ 3773:3b5691f85c0d gsoc2008_manymouse
Further x11 code improvments + comments
author | Szymon Wilczek <kazeuser@gmail.com> |
---|---|
date | Mon, 04 Aug 2008 11:18:10 +0000 |
parents | 64f346a83ed3 |
children |
comparison
equal
deleted
inserted
replaced
3772:9087a84cba51 | 3773:3b5691f85c0d |
---|---|
488 (FocusChangeMask | EnterWindowMask | LeaveWindowMask | | 488 (FocusChangeMask | EnterWindowMask | LeaveWindowMask | |
489 ExposureMask | ButtonPressMask | ButtonReleaseMask | | 489 ExposureMask | ButtonPressMask | ButtonReleaseMask | |
490 PointerMotionMask | KeyPressMask | KeyReleaseMask | | 490 PointerMotionMask | KeyPressMask | KeyReleaseMask | |
491 PropertyChangeMask | StructureNotifyMask | | 491 PropertyChangeMask | StructureNotifyMask | |
492 KeymapStateMask | fevent)); | 492 KeymapStateMask | fevent)); |
493 XSelectExtensionEvent(data->display, w, SDL_XEvents, SDL_NumOfXEvents); | |
494 } | 493 } |
495 #else | 494 #else |
496 XMapWindow(data->display,w); | 495 XMapWindow(data->display,w); |
497 XSelectInput(data->display, w, | 496 XSelectInput(data->display, w, |
498 (FocusChangeMask | EnterWindowMask | LeaveWindowMask | | 497 (FocusChangeMask | EnterWindowMask | LeaveWindowMask | |
499 ExposureMask | ButtonPressMask | ButtonReleaseMask | | 498 ExposureMask | ButtonPressMask | ButtonReleaseMask | |
500 PointerMotionMask | KeyPressMask | KeyReleaseMask | | 499 PointerMotionMask | KeyPressMask | KeyReleaseMask | |
501 PropertyChangeMask | StructureNotifyMask | | 500 PropertyChangeMask | StructureNotifyMask | |
502 KeymapStateMask)); | 501 KeymapStateMask)); |
502 #endif | |
503 | |
504 /*we're informing the display what extension events we want to receive from it*/ | |
503 XSelectExtensionEvent(data->display, w, SDL_XEvents, SDL_NumOfXEvents); | 505 XSelectExtensionEvent(data->display, w, SDL_XEvents, SDL_NumOfXEvents); |
504 #endif | |
505 | 506 |
506 return 0; | 507 return 0; |
507 } | 508 } |
508 | 509 |
509 int | 510 int |