]> git.proxmox.com Git - mirror_qemu.git/commit
ui/cocoa: Add utility method to check if point is within window
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 23 Jun 2014 09:35:23 +0000 (10:35 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Sun, 29 Jun 2014 21:00:33 +0000 (22:00 +0100)
commit5dd45bee5816ef1e941fdf1122943e4ab345f388
tree8e6e00f3cd8b12186c5db4efe4a58b577f6d5d60
parent381600dad956ba246f8cb9806e70423f4121bae3
ui/cocoa: Add utility method to check if point is within window

Add a utility method to check whether a point is within the current window
bounds, and use it in the various places in the mouse handling code that
were opencoding the check.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1403516125-14568-3-git-send-email-peter.maydell@linaro.org
ui/cocoa.m