]> git.cworth.org Git - apitrace/commitdiff
eglretrace: Fix window size hints problem.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 10 Oct 2013 16:48:12 +0000 (09:48 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 10 Oct 2013 16:51:18 +0000 (17:51 +0100)
As suggested by Adrinael and confirmed by Alexander Monakov in issue #178.

retrace/glws_egl_xlib.cpp

index 0e6b8237305dd302c67c98bca88124d2a1de020e..6bfc40d600f45ad256137c10329acf111ccd1f20 100644 (file)
@@ -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);