| Submitter | alexandros.frantzis@linaro.org |
|---|---|
| Subject | [Branch,~glcompbench-dev/glcompbench/trunk] Rev 43: Set the canvas width and height only when we receive a configure event for its window. |
| Date | June 24, 2011, 4:21 p.m. |
| List thread | <20110624162135.19375.51612.launchpad@loganberry.canonical.com> |
| Project | glcompbench |
| State | Accepted |
| Last updated | June 24, 2011, 4:21 p.m. |
| Headers | show |
Comments
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
