-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Wayland support? #6
Comments
Hi, thanks for writing it up. Yes, it should be a support to get in, the problem for me is I do not have Wayland to test it properly. VM might be an option but the disk space is quite tight at the moment :) |
I took a quick look at Wayland systems. It looks like it is fully compatible with X11 and the clipboard package works if we just install libx11-dev. It seems we don't have to do anything else here. Did I misunderstand anything? |
Looks like nothing is needed for Wayland porting. Close. (clarify if anything was a misunderstanding.) |
Can you elaborate a bit more on how this library supports wayland if I am trying to build an app to centralize (and act as a dispatcher - think greenclip on i3/xwindows or the copy/paste and snippets functionality of Alfred on OSX), copies and pastes from sway window manger on wayland. Is it just the api for libx11-dev is the same if you are sending messages from wayland to the library, or it's actually using xwindows conventions (which for me would be a no go because of the xwindows security model which does not insulate apps.). lemme know. Still in the investigative stage of how to build this, so it might just be me not understanding how the mechanics of this works on X11 or Wayland... thanks! |
@wakatara Thanks for the inquiry. In fact, I am still suspect the support regarding Wayland support. As I remember from the last time, I tested the demo cli Feel free to let me know if the package could really work from different feedback, as I lack much experience with Wayland systems, but also interested to support it if not yet. |
Just an idea. Have you considered using wl-clipboard? Then just check if we are on wayland:
|
Yes, I know about wl-clipboard, but it would be an external dependency. Although it is a temporary solution, I don't have a Wayland environment for testing. |
Removing linking of libX11 and replacing it with dlopen to call the functions dynamically. For the future wayland support, the library will not require the libX11 library to be installed on the running system. For compiling it we need it, because of the huge and complicated type definitions, but the compiled binary will run also on a system without libX11. References: #6 Signed-off-by: Vladimír Magyar <[email protected]>
So @emersion has pointed me to his blog post: https://emersion.fr/blog/2020/wayland-clipboard-drag-and-drop/
EDIT: new dependency for libwayland, not for wlroots |
This really shouldn't be necessary. wlroots is a library for building compositors, clients must not depend on it. |
This sounds like a nice plan. Since I am not entirely familiar with libwayland, is it the official dev distribution for wayland support? |
libwayland is the official C library to connect to a Wayland compositor. It's like libX11 or libxcb.
The
Not really, not without quitting the terminal emulator. |
So I'll get to it :) |
Hello, are there any plans to support wayland soon? or just implementing a temporary solution? thanks! |
Hey quick question. Are there plans to support wayland in the future?
Thank you for you time :)
The text was updated successfully, but these errors were encountered: