]> git.cworth.org Git - apitrace/commitdiff
glretrace: reapply fix for #178 to original GLX code
authorAlexander Monakov <amonakov@ispras.ru>
Wed, 16 Oct 2013 16:17:15 +0000 (20:17 +0400)
committerAlexander Monakov <amonakov@ispras.ru>
Wed, 16 Oct 2013 16:17:15 +0000 (20:17 +0400)
retrace/glws_glx.cpp

index 5de845085cdc28350192dc47587b5571a0b13a33..d150aa609c5a2acb53c71633c9b97fb0ab77a351 100644 (file)
@@ -183,8 +183,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;
@@ -192,6 +190,8 @@ public:
         size_hints.flags = PMinSize | PMaxSize;
         XSetWMNormalHints(display, window, &size_hints);
 
+        XResizeWindow(display, window, w, h);
+
         waitForEvent(ConfigureNotify);
 
         glXWaitX();