On Thu, 8 Jan 2026 20:09:41 GMT, Michael Strauß <[email protected]> wrote:

>> This works just as before. All of the code in 
>> `GlassWindow::HandleCaptionMouseEvents` is only ever relevant if you start 
>> the PDR gesture by clicking on a draggable area of the header bar. If you 
>> instead click on an interactive part (like a rearrangable button bar or 
>> something), the `m_caption.tracking` flag will not be set, and the entire 
>> method is a NOP.
>
> If you make the mistake of marking an interactive node on the header bar as 
> `DRAGGABLE`, then you still won't be able to DnD this node, as the only 
> events you'll ever receive are `MOUSE_PRESSED` and `MOUSE_RELEASED`, but no 
> intermediate `MOUSE_DRAGGED`. The move-modal loop that moves the window will 
> eat all the intermediate events.

yes, the DnD is unaffected.  thanks for clarification!

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1936#discussion_r2673787147

Reply via email to