qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/2] ui/cocoa: fix grabbing issue in fullscreen


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 2/2] ui/cocoa: fix grabbing issue in fullscreen mode
Date: Mon, 18 Mar 2019 11:53:55 +0000

On Fri, 15 Mar 2019 at 09:37, Chen Zhang <address@hidden> wrote:
>
> Signed-off-by: Chen Zhang <address@hidden>

Again, it would be nice to see a commit message here
that explained what was being changed and why.

If you take my suggestion from my review of patch 1 this is
no longer relevant, but:

> @@ -881,7 +900,7 @@ QemuCocoaView *cocoaView;
>              break;
>          case NSEventTypeLeftMouseUp:
>              mouse_event = true;
> -            if (!isMouseGrabbed && [self screenContainsPoint:p]) {
> +            if (!isMouseGrabbed && [self screenContainsPointOfEvent:event]) {
>                  if([[self window] isKeyWindow]) {
>                      [self grabMouse];
>                  }
> @@ -944,7 +963,7 @@ QemuCocoaView *cocoaView;
>          if (isMouseGrabbed) {
>              if (isAbsoluteEnabled) {
>                  /* Note that the origin for Cocoa mouse coords is bottom 
> left, not top left.
> -                 * The check on screenContainsPoint is to avoid sending out 
> of range values for
> +                 * The check on screenContainsPointOfEvent is to avoid 
> sending out of range values for
>                   * clicks in the titlebar.
>                   */
>                  if ([self screenContainsPointOfEvent:event]) {
> --
> 2.19.2

These two changes really belong in patch 1, not patch 2, don't they?

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]