-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v3 alpha] Fix drag-n-drop on some linux distros #3346
[v3 alpha] Fix drag-n-drop on some linux distros #3346
Conversation
Important Auto Review SkippedAuto reviews are disabled on base/target branches other than the default branch. Please add the base/target branch pattern to the list of additional branches to be reviewed in the settings. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you tell me why we need to split out to the linux_cgo.h file?
There is only one file that includes it now. I don't see why that is necessary.
Will you put it back unless there is a good reason I am missing?
I did it for syntax highlighting and IntelliSense. I'm happy to undo it if that's not reason enough. |
aa5f624
to
22c41ef
Compare
Let's leave it split out. Indentation is hard enough in a comment already. FYI I couldn't get the docker image to work properly for some reason. Will try again today. |
22c41ef
to
fd079ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm rescinding my request to put the code back inside the linux_cgo.go
file at this time.
Doesn't seem to cause any harm.
fd079ee
to
c90d7a7
Compare
It turns out that the Please put the relevant code back in to the relevant sections of |
c90d7a7
to
c6d8183
Compare
Whoops, I didn't notice that. I moved the code back into |
Thank you! |
94e649e
to
031aefd
Compare
Description
On some linux distributions the cursor gets stuck when moving files over the drag-n-drop example. I haven't figured out why only some distributions are affected.
Fixes https://discord.com/channels/1042734330029547630/1220475512833441802
Changes:
w.vbox
instead ofw.webview
w.webview
as a dnd destination withgtk_drag_dest_unset
This results in events like
drop
anddragover
to not fire at allType of change
How Has This Been Tested?
By running the drag-n-drop example.
Because not all distributions are affected by the error, I also created a Dockerfile to reproduce the error.
The docker image can be run with x11docker.
docker build -t drag-n-drop -f Dockerfile . docker pull x11docker/xserver x11docker --desktop --xc=yes --init=systemd drag-n-drop
Test Configuration
Checklist:
mkdocs-website/docs/changelog.md
with details of this PR