answer some commented questions

This commit is contained in:
Devin J. Pohly
2012-12-31 19:31:38 -05:00
parent 301bc1428b
commit d9f61d919c
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ void InputHandler_X11::Update()
lastEvent.type = 0; lastEvent.type = 0;
} }
// Why only the zero index? // Get the first defined keysym for this event's key
lastDB = XSymToDeviceButton( XLookupKeysym(&event.xkey, 0) ); lastDB = XSymToDeviceButton( XLookupKeysym(&event.xkey, 0) );
if( lastDB == DeviceButton_Invalid ) if( lastDB == DeviceButton_Invalid )
@@ -161,7 +161,8 @@ RString LowLevelWindow_X11::TryVideoMode( const VideoModeParams &p, bool &bNewDe
XSelectInput( Dpy, Win, winAttrib.your_event_mask | StructureNotifyMask ); XSelectInput( Dpy, Win, winAttrib.your_event_mask | StructureNotifyMask );
XMapWindow( Dpy, Win ); XMapWindow( Dpy, Win );
// XXX: Why do we need to wait for the MapNotify event? // Wait until we actually have a mapped window before trying to
// use it!
while( true ) while( true )
{ {
XEvent event; XEvent event;