Subject: Re: bug#28620: Interact directly on Emacs bug#28620: mouse drag event records wrong release window

From: Robert Weiner <[email-masked]>
Date: Wed, 4 Oct 2017 16:11:44 -0400

On Wed, Oct 4, 2017 at 3:30 PM, Robert Weiner <[email-masked]> wrote:

> Hi Alan:
>
>>
>> ​​
>> It looks like there’s maybe a neater way to get the current frame
>> ​​
>> under the mouse...
>> ​​
>>
>> ​​
>>     Lisp_Object frame = Qnil;
>> ​​
>>     NSWindow *w = [NSApp windowWithWindowNumber:
>> ​​
>>                          [NSWindow windowNumberAtPoint:[NSEvent
>> mouseLocation]
>> ​​
>>                            belowWindowWithWindowNumber:0]];
>> ​​
>>     if (w != nil)
>> ​​
>>       XSETFRAME (frame, ((EmacsView *)[w delegate])->emacsframe);
>>
>
​As is, this didn't seem to have any effect.

Bob
​