Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11window.c @ 2718:abacf2555bb4
Removed unneccesary code lines. Fixed mousename bug. Added lacking code in mousebutton
author | Szymon Wilczek <kazeuser@gmail.com> |
---|---|
date | Mon, 25 Aug 2008 18:02:14 +0000 |
parents | 44e49d3fa6cf |
children | 6ce6d56b63bf |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11window.c Mon Aug 25 17:34:58 2008 +0000 +++ b/src/video/x11/SDL_x11window.c Mon Aug 25 18:02:14 2008 +0000 @@ -483,7 +483,6 @@ Uint32 fevent = 0; pXGetICValues(((SDL_WindowData *) window->driverdata)->ic, XNFilterEvents, &fevent, NULL); - XMapWindow(data->display, w); XSelectInput(data->display, w, (FocusChangeMask | EnterWindowMask | LeaveWindowMask | ExposureMask | ButtonPressMask | ButtonReleaseMask | @@ -492,13 +491,14 @@ KeymapStateMask | fevent)); } #else - XMapWindow(data->display, w); - XSelectInput(data->display, w, + { + XSelectInput(data->display, w, (FocusChangeMask | EnterWindowMask | LeaveWindowMask | ExposureMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask | KeyPressMask | KeyReleaseMask | PropertyChangeMask | StructureNotifyMask | KeymapStateMask)); + } #endif /* we're informing the display what extension events we want to receive from it */