Is it possible for a c application using libwayland-client.so to get the name of the compositor / display server it opened a connection to (e.g. KWin, Sway, …)? I fail to find it in the docs. For reference, in X11 this is possible using XProps specified by EWMH: _NET_SUPPORTING_WM_CHECK to get the window id of the window manager and then
Tag: wayland
“Authentication failed” in Wayland application
First of all, sorry for a potentially silly question, it’s my first attempt to work with Wayland. But i’ve googled and could not find anything related. The system which i develop, is very time-critical in running graphicall applications, so i’ve managed to run Weston and the desired application on initramfs step before systemd starts. Everything went fine, except that “normal”
Check if at least one Wayland session is running
I’m using Qt and want to check if any Wayland session is running. For now I have this just for test code, that works as expected: Is it possible to get rid of QProcess and use Linux C++ API? Answer You can try to connect to Wayland. If you can connect to a Wayland composer it is running otherwise is
How to know if an opengl function is going to block?
I am using wayland with IVI extension. I have a program, showing camera image in a sufrace, and it is controlled using dbus. I found out that if the surface is hidden, then the opengl functions are blocking the program (It is glClear( GL_COLOR_BUFFER_BIT ); which blocks). I found this discussion, which explain that this behaviour is as expected. Is
How I can find out if a Linux system uses Wayland or X11?
Used language I am using C++14 with cmake for my program. Problem: I would like to know how I can find out if a Linux system uses Wayland or X11 as a window system to be able to use both APIs in my source code without conflict. Thus creating a window with Wayland when Wayland is available and otherwise use