-
Notifications
You must be signed in to change notification settings - Fork 34
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
Clipboard with world only, not view? #32
Comments
Hm. Unfortunately I'm not sure it's so small of an obstacle. The X selection is owned by a Given that the clipboard API is (somewhat unfortunately) not event-based, conceptually it seems like this should be feasible from an API POV, at first glance anyway. But if it requires keeping some fake window around just to deal with the clipboard... that might not be very fun. |
(As a stop-gap I suppose you could always just do this yourself. I think it should work with an invisible view) |
This explanation makes sense. I have some options to hack it on plugin-side, so not the biggest deal. |
Sure, leave it open. Maybe making a window but never mapping it works and isn't too ugly... I'd be interested to know if using PuglView in a similar way in a plugin works out anyway. |
I'm just going to go with "no" on this one. The platforms are the way that they are, I generally try to avoid Pugl pretending too much. Clipboards being associated with windows seems to be the norm, if anything. I imagine that whatever tricks one uses to do that (like using an invisible window) will work when implemented using Pugl, but I haven't tried it. Please open a specific issue if you encounter problems doing this. |
Hello, the current clipboard API requires a view so the content may be accessed.
May it possibly have functions do to do, but with world only?
For context, my task is to port the GUI library elements on top of Pugl.
cycfi/elements#111
The clipboard access routines of this library don't provide the view as a parameter.
It's how they do for 3 portability layers: Mac, Win, Gtk
For Pugl, it's a small obstacle, so I wonder if it could be modified to operate the same, if this model would make sense.
The text was updated successfully, but these errors were encountered: