X11: Don't do a round-trip to the server to figure out our size on configure
Simply use the values from the event structure.
This commit is contained in:
parent
01ff85506d
commit
fec641d14a
|
@ -303,11 +303,7 @@ void cX11Window::XEventThread()
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ConfigureNotify:
|
case ConfigureNotify:
|
||||||
Window winDummy;
|
GLInterface->SetBackBufferDimensions(event.xconfigure.width, event.xconfigure.height);
|
||||||
unsigned int borderDummy, depthDummy;
|
|
||||||
XGetGeometry(GLWin.evdpy, GLWin.win, &winDummy, &GLWin.x, &GLWin.y,
|
|
||||||
&GLWin.width, &GLWin.height, &borderDummy, &depthDummy);
|
|
||||||
GLInterface->SetBackBufferDimensions(GLWin.width, GLWin.height);
|
|
||||||
break;
|
break;
|
||||||
case ClientMessage:
|
case ClientMessage:
|
||||||
if ((unsigned long) event.xclient.data.l[0] ==
|
if ((unsigned long) event.xclient.data.l[0] ==
|
||||||
|
|
Loading…
Reference in New Issue