On Wed, 21 Dec 2022 00:42:15 GMT, Thiago Milczarek Sayao <tsa...@openjdk.org> wrote:
>> This PR was previously discussed on #905. >> >> The approach is to grab the keyboard focus so the window that originated the >> drag will keep it. >> >> I did some cleanup on grabbing related functions as well. >> >> `gdk_keyboard_focus()` is deprecated, so is `gdk_device*` functions in favor >> of `gdk_seat*`. But that's only available in later Gtk versions. I checked >> and newer Gtk will use `gdk_seat*` inside the deprecated >> `gdk_keyboard_focus()`. > > Thiago Milczarek Sayao has updated the pull request incrementally with one > additional commit since the last revision: > > Don't ungrab drag focus on window focus I did a few tests and it works. If anyone can name scenarios where mouse grab would make a difference it would help testing. ------------- PR: https://git.openjdk.org/jfx/pull/977