Revert waiting for mapped window before reading dimensions.
It causes issues on some systems.
This commit is contained in:
parent
0a4211af82
commit
3c7673ccfc
@ -674,13 +674,6 @@ void CIrrDeviceLinux::grabPointer(bool grab)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef _IRR_COMPILE_WITH_X11_
|
||||
Bool CIrrDeviceLinux::isWindowMapped(Display* display, XEvent* event, XPointer arg)
|
||||
{
|
||||
return event->type == MapNotify && event->xmap.window == *((Window*)arg);
|
||||
}
|
||||
#endif
|
||||
|
||||
bool CIrrDeviceLinux::createWindow()
|
||||
{
|
||||
#ifdef _IRR_COMPILE_WITH_X11_
|
||||
@ -1168,9 +1161,6 @@ bool CIrrDeviceLinux::createWindow()
|
||||
IrrPrintXGrabError(grabPointer, "XGrabPointer");
|
||||
XWarpPointer(display, None, window, 0, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
XEvent event;
|
||||
XPeekIfEvent(display, &event, &isWindowMapped, (XPointer)&window);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -166,7 +166,6 @@ namespace irr
|
||||
int getNumlockMask(Display* display);
|
||||
EKEY_CODE getKeyCode(XEvent &event);
|
||||
void updateIMELocation();
|
||||
static Bool isWindowMapped(Display* display, XEvent* event, XPointer arg);
|
||||
#endif
|
||||
|
||||
//! Implementation of the linux cursor control
|
||||
|
Loading…
x
Reference in New Issue
Block a user