From fec641d14ad943e58dabba00bc747ccea8f0470d Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 21 Jul 2013 01:02:10 -0400 Subject: [PATCH] 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. --- Source/Core/DolphinWX/Src/GLInterface/X11_Util.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/Core/DolphinWX/Src/GLInterface/X11_Util.cpp b/Source/Core/DolphinWX/Src/GLInterface/X11_Util.cpp index 3bfe9fb86f..89766b284d 100644 --- a/Source/Core/DolphinWX/Src/GLInterface/X11_Util.cpp +++ b/Source/Core/DolphinWX/Src/GLInterface/X11_Util.cpp @@ -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] ==