From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 405E6C07E96 for ; Tue, 13 Jul 2021 23:03:09 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E4CFA6128B for ; Tue, 13 Jul 2021 23:03:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E4CFA6128B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=noronha.dev.br Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:39226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3RQi-0002bz-1c for qemu-devel@archiver.kernel.org; Tue, 13 Jul 2021 19:03:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3Q0u-0001AM-Tz for qemu-devel@nongnu.org; Tue, 13 Jul 2021 17:32:25 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:55497) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3Q0o-0007Ss-LZ for qemu-devel@nongnu.org; Tue, 13 Jul 2021 17:32:21 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 6929132008C3; Tue, 13 Jul 2021 17:32:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 13 Jul 2021 17:32:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noronha.dev.br; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=IssmBKLjF2nfDMGM8DE+nvmPO5 wleZvOFJQ1XD50ScE=; b=cjRwzjzC/ygwjHvCzrq0/4v47Ix0l7lQsJw+4NSLrG ihwbs4n0TUQSR5qJ6GnUummC8sUWHTHMWDol8H2EGwCrbbgC8ArhURbmbVSMP+wz hQpQrbVpvOcrQoj+tyMGc9xyt335IyIAkpF8RQ0rPx6eKQu6BLvcY2kv4zKABQJU vQH3f2gj/tDOCffvgbc7c/Nxm/8HFPhUE4+RbmZQIGHIHYvWqhqsKS5vwPnJa2aA qnIuIo37gGNciLaW2/lOH7IitJrxOHlSnCMo1ETaQSInfxhRDVDtcnxswZqofk9t Zkk7fxcDOUgZ28lRQtgJ1PAvi8Lf3DLbxj+REz8zIjbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=IssmBKLjF2nfDMGM8 DE+nvmPO5wleZvOFJQ1XD50ScE=; b=kBdUGwKkC46Ma27G+U+3HJY0cC93+taEY LtzFHPlDbH61l7gN8cAnluYh6FOfPIL4tMOBaZkkYNPsLFOJ/o7oAAy4kycMtTyd vsBOkY9G802Acc532TpfR+YeOM8sSf6Er0bqPPNMI563OU0zfBB+oO+ST+XuUQrK tr18tYm34XbkJLE7AbY4PJASWdcv11G24WlIGaVsXTPV9jWwVClNU8US3VBPmg5o JjSQ6GlyjFt/CooHwQsCx7WvAduDOUtFTRNkgKuGeH4KZZgQ0sGxOyus8k+WJYkU VjvEyTcLR7+4azH56RvKdpJUTxvfTXG7lEVCUD8j5JZgtzXKqneqQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeigddukecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepghhushhtrghvohes nhhorhhonhhhrgdruggvvhdrsghrnecuggftrfgrthhtvghrnhepvedvhedtjeetieejfe egffdtudekfedvleegtedvtedtjeevfeehieelgeevleefnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhushhtrghvohesnhhorhhonhhhrg druggvvhdrsghr X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Jul 2021 17:32:09 -0400 (EDT) From: gustavo@noronha.dev.br To: qemu-devel@nongnu.org Subject: [PATCH v5 0/2] cocoa: keyboard quality of life Date: Tue, 13 Jul 2021 18:31:58 -0300 Message-Id: <20210713213200.2547-1-gustavo@noronha.dev.br> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.147.123.25; envelope-from=gustavo@noronha.dev.br; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 13 Jul 2021 19:01:02 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 'Peter Maydell ' , 'Markus Armbruster ' , 'Gerd Hoffmann ' , 'Akihiko Odaki ' , 'Eric Blake ' , Gustavo Noronha Silva Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Gustavo Noronha Silva v5 addresses the casting issue pointed out by Akihiko Odaki. Sorry it took me so long to update the patches, but here they are! Hopefully we can get them in now ;D Btw I also changed my email address slightly (.dev.br instead of .eti.br). ----- This series adds two new options to the cocoa display: - full-grab causes it to use a global tap to steal system combos away from Mac OS X, so they can be handled by the VM - swap-option-command does what it says on the tin; while that is something you can do at the Mac OS X level or even supported by some keyboards, it is much more convenient to have qemu put Meta/Super and Alt where they belong if you are running a non-Mac VM Both are off by default. For full-grab in particular, it is off also because unfortunately it needs accessibility permissions for input grabbing, so it requires more deliberate action by the user anyway. Gustavo Noronha Silva (2): ui/cocoa: capture all keys and combos when mouse is grabbed ui/cocoa: add option to swap Option and Command qapi/ui.json | 22 +++++++++ qemu-options.hx | 4 ++ ui/cocoa.m | 129 ++++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 146 insertions(+), 9 deletions(-) -- 2.30.1 (Apple Git-130)