From 7fd976e02535da8c66fdd6da0cbb2f5762f5149a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 10 Oct 2013 09:48:12 -0700 Subject: [PATCH] eglretrace: Fix window size hints problem. As suggested by Adrinael and confirmed by Alexander Monakov in issue #178. --- retrace/glws_egl_xlib.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retrace/glws_egl_xlib.cpp b/retrace/glws_egl_xlib.cpp index 0e6b823..6bfc40d 100644 --- a/retrace/glws_egl_xlib.cpp +++ b/retrace/glws_egl_xlib.cpp @@ -193,8 +193,6 @@ public: Drawable::resize(w, h); - XResizeWindow(display, window, w, h); - // Tell the window manager to respect the requested size XSizeHints size_hints; size_hints.max_width = size_hints.min_width = w; @@ -202,6 +200,8 @@ public: size_hints.flags = PMinSize | PMaxSize; XSetWMNormalHints(display, window, &size_hints); + XResizeWindow(display, window, w, h); + waitForEvent(ConfigureNotify); eglWaitNative(EGL_CORE_NATIVE_ENGINE); -- 2.43.0