FrameTools: Use the correct window handle for resizing the window

We want to resize the OpenGL window, not the frame window.
This commit is contained in:
Jasper St. Pierre 2013-07-23 14:58:16 -04:00
parent 0ba6d12e9d
commit 09338c673c
1 changed files with 1 additions and 1 deletions

View File

@ -796,7 +796,7 @@ void CFrame::OnRenderParentResize(wxSizeEvent& event)
#if defined(HAVE_X11) && HAVE_X11
wxRect client_rect = m_RenderParent->GetClientRect();
XMoveResizeWindow(X11Utils::XDisplayFromHandle(GetHandle()),
X11Utils::XWindowFromHandle(GetHandle()),
(Window) Core::GetWindowHandle(),
client_rect.x, client_rect.y,
client_rect.width, client_rect.height);
#endif