From: José Fonseca Date: Thu, 10 Oct 2013 16:48:12 +0000 (-0700) Subject: eglretrace: Fix window size hints problem. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=7fd976e02535da8c66fdd6da0cbb2f5762f5149a;hp=d38b370ca8d332ca54a6f5cdea3373199991f65d;p=apitrace eglretrace: Fix window size hints problem. As suggested by Adrinael and confirmed by Alexander Monakov in issue #178. --- 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);