diff mbox

[Branch,~glcompbench-dev/glcompbench/trunk] Rev 43: Set the canvas width and height only when we receive a configure event for its window.

Message ID 20110624162135.19375.51612.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org June 24, 2011, 4:21 p.m. UTC
------------------------------------------------------------
revno: 43
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
branch nick: trunk
timestamp: Fri 2011-06-24 19:19:16 +0300
message:
  Set the canvas width and height only when we receive a configure event for its window.
modified:
  src/composite-canvas.cc


--
lp:glcompbench
https://code.launchpad.net/~glcompbench-dev/glcompbench/trunk

You are subscribed to branch lp:glcompbench.
To unsubscribe from this branch go to https://code.launchpad.net/~glcompbench-dev/glcompbench/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'src/composite-canvas.cc'
--- src/composite-canvas.cc	2011-06-24 13:44:02 +0000
+++ src/composite-canvas.cc	2011-06-24 16:19:16 +0000
@@ -366,12 +366,12 @@ 
     }
     else if (event.type == ConfigureNotify) {
         window = event.xconfigure.window;
-        width_ = event.xconfigure.width;
-        height_ = event.xconfigure.height;
         Log::debug("Configure Win: 0x%x %d x %d\n",
                    window,
                    width_, height_);
         if (window == canvas_) {
+            width_ = event.xconfigure.width;
+            height_ = event.xconfigure.height;
             reshape(width_, height_);
         }
         else