[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 8d3a5d: ui/cocoa.m: Prevent activation clicks
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] 8d3a5d: ui/cocoa.m: Prevent activation clicks from going t... |
Date: |
Wed, 02 Dec 2015 02:30:04 -0800 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: 8d3a5d9b0f76e3f965ce2b845f6e9027fd98fd30
https://github.com/qemu/qemu/commit/8d3a5d9b0f76e3f965ce2b845f6e9027fd98fd30
Author: Peter Maydell <address@hidden>
Date: 2015-12-01 (Tue, 01 Dec 2015)
Changed paths:
M ui/cocoa.m
Log Message:
-----------
ui/cocoa.m: Prevent activation clicks from going to guest
When QEMU is brought to the foreground, the click event that activates QEMU
should not go to the guest. Accidents happen when they do go to the guest
without giving the user a chance to handle them. In particular, if the
guest input device is not an absolute-position one then the location of
the guest cursor (and thus the click) will likely not be the location of
the host cursor when it is clicked, and could be completely obscured
below another window. Don't send mouse clicks to QEMU unless the
window either has focus or has grabbed mouse events.
Reported-by: John Arbuckle <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: John Arbuckle <address@hidden>
Message-id: address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] 8d3a5d: ui/cocoa.m: Prevent activation clicks from going t...,
GitHub <=