Skip to content

fix(linux): attach seat pointer device via gdk_event_set_device (v1.0.1) - #1

Merged
kthguru merged 1 commit into
mainfrom
release/1.0.1
Nov 20, 2026
Merged

kthguru merged 1 commit into
mainfrom
release/1.0.1

Conversation

@kthguru

@kthguru kthguru commented Nov 19, 2026

Copy link
Copy Markdown
Member

Summary

  • Bind gdk_event_set_device and gdk_event_get_device from libgdk-3.so.0 in LinuxGtkBindings.
  • Attach the default GdkSeat pointer device via gdk_event_set_device to synthesized GDK_BUTTON_RELEASE events in releaseLinuxMouseButtonAfterGrab before dispatching gtk_widget_event.
  • Eliminates Gdk-CRITICAL **: gdk_device_get_axis: assertion 'GDK_IS_DEVICE (device)' failed warnings emitted by the Flutter GTK embedder after interactive caption-bar window dragging on Linux Wayland/X11.
  • Bump version to 1.0.1 across pubspec.yaml, CHANGELOG.md, README.md, and example/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 Linux libgdk-3.so.0 FFI probe)
  • cd example && flutter test (1/1 passed)
  • dart pub publish --dry-run (0 warnings, 64 KB archive)

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
kthguru merged commit f619b2b into main Nov 20, 2026
4 checks passed
@kthguru
kthguru deleted the release/1.0.1 branch November 20, 2026 02:16
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant