answer some commented questions
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user