Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
X11: Don't do a round-trip to the server to figure out our size on co…
…nfigure

Simply use the values from the event structure.
  • Loading branch information
magcius committed Jul 21, 2013
1 parent 01ff855 commit fec641d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Source/Core/DolphinWX/Src/GLInterface/X11_Util.cpp
Expand Up @@ -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] ==
Expand Down

0 comments on commit fec641d

Please sign in to comment.