linux: fix GDK warning on pointer leave from an offscreen GTK web view - #86
Open
sduguay-devolutions wants to merge 1 commit into
Open
sduguay-devolutions wants to merge 1 commit into
sduguay-devolutions wants to merge 1 commit into
Conversation
A crossing event has no device field to assign the way motion, button and scroll do, so the synthesized leave went out without one and GDK warned "Event with type 11 not holding a GdkDevice" on every pointer leave out of an offscreen web view. Set it through gdk_event_set_device, as the synthesized key events already do. The Desktop sample logs the warning 33 times in a 25 second run, and none after. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
sduguay-devolutions
force-pushed
the
fix/leave-event-missing-gdk-device
branch
from
September 24, 2026 14:41
ad49bc8 to
94d0328
Compare
This branch has not been deployed
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.
Issue
GDK logs this on every pointer leave out of an offscreen web view:
(Avalonia.Controls.WebView.Samples.Desktop:832198): Gdk-WARNING **: Event with type 11 not holding a GdkDevice. It is most likely synthesized outside Gdk/GTK+Fix
PointerLeaveInput now takes the pointer from the default seat and attaches it with gdk_event_set_device, which is what the synthesized events in the same file already do for the same reason.