Repository navigation
fix(linux): attach seat pointer device via gdk_event_set_device (v1.0.1) - #1
Merged
Merged
Conversation
Bind gdk_event_set_device and gdk_event_get_device from libgdk-3.so.0 and attach the default GdkSeat pointer to synthesized GDK_BUTTON_RELEASE events in releaseLinuxMouseButtonAfterGrab before dispatching gtk_widget_event. This eliminates Gdk-CRITICAL gdk_device_get_axis assertions after caption-bar dragging on Linux GTK3/Wayland and X11.
kthguru
added a commit
that referenced
this pull request
Nov 20, 2026
Integrate PR #1 (Linux gdk_event_set_device fix) and unify v1.0.1 CHANGELOG entries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gdk_event_set_deviceandgdk_event_get_devicefromlibgdk-3.so.0inLinuxGtkBindings.GdkSeatpointer device viagdk_event_set_deviceto synthesizedGDK_BUTTON_RELEASEevents inreleaseLinuxMouseButtonAfterGrabbefore dispatchinggtk_widget_event.Gdk-CRITICAL **: gdk_device_get_axis: assertion 'GDK_IS_DEVICE (device)' failedwarnings emitted by the Flutter GTK embedder after interactive caption-bar window dragging on Linux Wayland/X11.1.0.1acrosspubspec.yaml,CHANGELOG.md,README.md, andexample/README.md.Verification
dart format --output=none --set-exit-if-changed .(0 changed)dart analyze --fatal-infos --fatal-warnings .(0 issues)flutter test(28/28 passed, including deterministic unit tests and live Linuxlibgdk-3.so.0FFI probe)cd example && flutter test(1/1 passed)dart pub publish --dry-run(0 warnings, 64 KB archive)