From patchwork Fri Oct 16 10:10:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 55093 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id E7CE622EAC for ; Fri, 16 Oct 2015 10:55:04 +0000 (UTC) Received: by lbcao8 with SMTP id ao8sf23069068lbc.1 for ; Fri, 16 Oct 2015 03:55:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=28Xj1isqcyWJZ5l6AhWuq+fyx499lq+UailbcObkHJQ=; b=dSbubtAEM2QRdvrgyAGqIKqpT3sYmXiA/JXx6VDB7yLVao7EO6IcxsEOewSzlBsDyy 7Dse6ztKUkWz2js/IsmUtIr4W+YwjuayUiNSL2X1P1JYxuVwmXBkcfuumdbHkoahEHZe Q705fbLtdCKvom8FezYVETERC3y4tVmiamTq5obCYe+HM+hj27v++YPpNnglxQYxSTfk f05psOMRKt82116fwVoBrzJ3609G/petrhtA+xg6+BouCIO+bwFvijgceydkP370MSNL CMpff+maix9pHSbFOiVOvJWZq6cnb1Kl7mDdpcBIV8/gA14yN8ulqLsIqIv2BXqhOORq Iz8g== X-Gm-Message-State: ALoCoQnj/UZFVUkhYWUwFORia9RDWmey+7x0qsz6Wx3KmYb8SNaAyllKYDIFTv+iUxJilDoOYjv7 X-Received: by 10.112.55.69 with SMTP id q5mr3451155lbp.24.1444992903928; Fri, 16 Oct 2015 03:55:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.170.130 with SMTP id t124ls308926lfe.7.gmail; Fri, 16 Oct 2015 03:55:03 -0700 (PDT) X-Received: by 10.112.63.233 with SMTP id j9mr7889940lbs.113.1444992903787; Fri, 16 Oct 2015 03:55:03 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id o9si12499682lbc.25.2015.10.16.03.55.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Oct 2015 03:55:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbes7 with SMTP id es7so7933577lbb.2 for ; Fri, 16 Oct 2015 03:55:03 -0700 (PDT) X-Received: by 10.112.17.34 with SMTP id l2mr7895917lbd.117.1444992903687; Fri, 16 Oct 2015 03:55:03 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1191821lbq; Fri, 16 Oct 2015 03:55:02 -0700 (PDT) X-Received: by 10.140.150.131 with SMTP id 125mr19044102qhw.88.1444992902761; Fri, 16 Oct 2015 03:55:02 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id g74si17293193qhc.67.2015.10.16.03.55.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 16 Oct 2015 03:55:02 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:52459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn214-0007Io-TW for patch@linaro.org; Fri, 16 Oct 2015 06:13:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn1yV-0005nM-8q for qemu-devel@nongnu.org; Fri, 16 Oct 2015 06:10:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn1yR-0001k5-9y for qemu-devel@nongnu.org; Fri, 16 Oct 2015 06:10:59 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:35157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn1yR-0001hC-3E for qemu-devel@nongnu.org; Fri, 16 Oct 2015 06:10:55 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1Zn1yJ-0003iw-U7 for qemu-devel@nongnu.org; Fri, 16 Oct 2015 11:10:47 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Fri, 16 Oct 2015 11:10:47 +0100 Message-Id: <1444990247-14277-4-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1444990247-14277-1-git-send-email-peter.maydell@linaro.org> References: <1444990247-14277-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Subject: [Qemu-devel] [PULL 3/3] ui/cocoa.m: blinky mouse cursor fix X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: John Arbuckle The mouse cursor can become blinky when being moved a lot. This patch fixes that problem by issuing the redraw sooner. Signed-off-by: John Arbuckle Message-id: AAA87DD7-EC20-4F4B-B71E-C38461D9FCBA@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 8db8b9f..c0d6bb2 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -1287,6 +1287,7 @@ static void cocoa_refresh(DisplayChangeListener *dcl) NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; COCOA_DEBUG("qemu_cocoa: cocoa_refresh\n"); + graphic_hw_update(NULL); if (qemu_input_is_absolute()) { if (![cocoaView isAbsoluteEnabled]) { @@ -1307,7 +1308,6 @@ static void cocoa_refresh(DisplayChangeListener *dcl) [cocoaView handleEvent:event]; } } while(event != nil); - graphic_hw_update(NULL); [pool release]; }