-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Added primary clipboard for Linux #53702
Added primary clipboard for Linux #53702
Conversation
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't comment on DisplayServer
side, but overall looks okay.
One other thing to note, we should probably move the paste blocks into a method something like paste_primary_clipboard()
. Then for TextEdit
allow it to be overridden similar to paste()
.
c1f6470
to
8098535
Compare
@Paulb23 I've done some changes in how primary clipboard selection is handled to solve a bug in the previous code. |
8098535
to
f40eb7f
Compare
@Paulb23 I've also added a missing update() in rich_text_label |
f40eb7f
to
fcabdb0
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.
GUI changes LGTM.
fcabdb0
to
838c9d3
Compare
I would like to send a pull request for the 3.x branch to backport this feature, can I do it or should I wait for this one to be merged? |
You can open a |
Thanks! And congrats for your first merged Godot contribution 🎉 |
@ConteZero good job! Thanks for picking it up again 🤘🔥💪 |
This commit add support for primary clipboard on Linux to handle text paste with middle mouse button.
It should solve #3030
This is based on code originally written by @larpon, I fixed some bugs, added small improvements and updated the code to make it work with current master branch.
Bugsquad edit: Fixes godotengine/godot-proposals#3440.