From e7471958e42791ed88afcf2eb951de6c66d3ec40 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 6 Aug 2014 22:22:13 -0400 Subject: X11_Util: Resize the GLX window by listening to events on the parent We now have two cases: the GLX window is parented into a frame, or it's parented into the MainNoGUI host. In both cases, the GLX window should be locked to the size of the parent, so just sync it up based on that. --- Source/Core/DolphinWX/FrameTools.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Source/Core/DolphinWX/FrameTools.cpp') diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 04f2e4dd1e..039b6370a3 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -840,13 +840,6 @@ void CFrame::OnRenderParentResize(wxSizeEvent& event) SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowWidth = width; SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowHeight = height; } -#if defined(HAVE_X11) && HAVE_X11 - wxRect client_rect = m_RenderParent->GetClientRect(); - XMoveResizeWindow(X11Utils::XDisplayFromHandle(GetHandle()), - (Window) Core::GetWindowHandle(), - client_rect.x, client_rect.y, - client_rect.width, client_rect.height); -#endif m_LogWindow->Refresh(); m_LogWindow->Update(); } -- cgit v1.2.3