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:
Jasper St. Pierre 2013-07-21 01:02:10 -04:00
parent 01ff85506d
commit fec641d14a
1 changed files with 1 additions and 5 deletions

View File

@ -303,11 +303,7 @@ void cX11Window::XEventThread()
}
break;
case ConfigureNotify:
Window winDummy;
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);
GLInterface->SetBackBufferDimensions(event.xconfigure.width, event.xconfigure.height);
break;
case ClientMessage:
if ((unsigned long) event.xclient.data.l[0] ==