-
Notifications
You must be signed in to change notification settings - Fork 523
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
X11 Copy and Paste does not work #17
Comments
My observation:
There are tools like If you were not aware of the above, could you retest with this new knowledge? I myself hate this distinction between several selection buffers, so I synchronize them all using 3 instances of |
Thank you for the reply! How is the PRIMARY clipboard supposed to be used? I am more familiar with the windows style of using
I opened xedit (the x11-apps version), and successfully copied and pasted text within xedit using this middle mouse button approach. However, when I select text from the nuklear textbox, and then attempt to paste it into xedit by clicking the middle mouse button nothing happens. Similarly the other way around, when I select text from xedit, and attempt to paste it into the nuklear textbox by clicking the middle mouse button, nothing happens... It seems that Edit: Edit2: |
Thanks for thorough testing you did. As you experienced, PRIMARY is not necessarily handled (e.g. pasted) just by MMB. Let's try to dig deeper.
|
Hi |
Could you pleasy simulate the two cases from #17 (comment) fully programatically (i.e. just calling the appropriate functions one after another instead of waiting for mouse input etc.)? |
Hi |
Please post your full code you're using to test the copy & paste behavior (use e.g. pastebin), so that we have a specific starting point. |
I am using the "overview.c" example that comes with the source code (see picture above). Line 587 in bb7c251
|
A minimal example how to use X11 clipboard/selection capabilities is on https://gist.github.com/vurtun/1c57d1e9e2ee169b90209325e38f0cb7 - might be interesting to compare with the current Nuklear backend implementation. |
The copy and paste feature of the X11 demo does not work. The code (found in nuklear_xlib.h) that accesses the X11 clipboard seems to have all come from one commit (#371). Since then, there have been no substantial changes to the respective lines of code.
Copy and paste in the gdi equivalent works (nuklear_gdi.h), so the problem seems specific to the xlib implementation.
The text was updated successfully, but these errors were encountered: