From patchwork Fri Jun 24 16:21:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alexandros.frantzis@linaro.org X-Patchwork-Id: 2304 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7A1BD23F7C for ; Fri, 24 Jun 2011 16:22:08 +0000 (UTC) Received: from mail-qy0-f180.google.com (mail-qy0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id 3E991A18375 for ; Fri, 24 Jun 2011 16:22:08 +0000 (UTC) Received: by qyk30 with SMTP id 30so2138863qyk.11 for ; Fri, 24 Jun 2011 09:22:07 -0700 (PDT) Received: by 10.229.40.139 with SMTP id k11mr2676025qce.135.1308932527689; Fri, 24 Jun 2011 09:22:07 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.230.139 with SMTP id jm11cs52823qcb; Fri, 24 Jun 2011 09:22:05 -0700 (PDT) Received: by 10.216.68.203 with SMTP id l53mr3099139wed.84.1308932524256; Fri, 24 Jun 2011 09:22:04 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id s3si6460246wec.96.2011.06.24.09.22.03; Fri, 24 Jun 2011 09:22:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Qa98q-0000ez-Uh for ; Fri, 24 Jun 2011 16:22:01 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 4A66A2E8134 for ; Fri, 24 Jun 2011 16:21:35 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: glcompbench X-Launchpad-Branch: ~glcompbench-dev/glcompbench/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 43 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [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> Date: Fri, 24 Jun 2011 16:21:35 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13265"; Instance="initZopeless config overlay" X-Launchpad-Hash: 7d40882ea64669bf84e2488ca1f57b6d392b8fa2 ------------------------------------------------------------ revno: 43 committer: Alexandros Frantzis 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 === 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