Does skiko (and by extension compose desktop) supp...
# compose-desktop
k
Does skiko (and by extension compose desktop) support Wayland display servers? I noticed in
<http://drawlayer.cc|drawlayer.cc>
that only references to X11 header files are made.
t
I do see much better performance on Wayland. So i would assume that it is working on Wayland 😄
k
Which distro are you running? Are you sure it's not using xwayland? https://wayland.freedesktop.org/xserver.html @Timo Drick
t
I am using XUbuntu. When i am running XUbuntu session the performance is very bad. When running Ubuntu Wayland session i am able to reach 60 fps in may app most of the time. I am not sure if it uses really Wayland but it is much faster than the normal XServer session
k
I wonder if we could test with this. https://medium.com/@bugaevc/how-to-easily-determine-if-an-app-runs-on-xwayland-or-on-wayland-natively-8191b506ab9a Do you have a demo app you could test with? I was just browsing the source code, I haven't had time to play with it yet
so I just launched xeyes on my fedora machine and IntelliJ is using XWayland. Makes sense.
If you aren't interested in checking this out with your app, I can build a demo app and try it out later and report back 🙂
@Timo Drick
t
What do you mean with demo app? I do have a CfD app which I am working on currently. I could do some testing. How can i see which type of wayland is used?
But this app is not native. It uses the JVM
k
Yeah that's fine. Skiko (the skia bindings that compose uses) specifically make calls into X11. There's a compatibility layer called XWayland that allows X client apps to be displayed with Wayland. I'm wondering if skiko has native wayland compatibility. Using the program
xeyes
can help you figure this out. By using it you can determine if a program is displaying using X or Xwayland based on if the eyes in the program follow your mouse when you mouse over the window. For example, when I run FireFox the eyes stop moving when I mouse over it. But when I mouse over IntelliJ they continue to move because IntelliJ is using XWayland.
to use xeyes, just run
Copy code
$ xeyes
What do you mean with demo app?
Meaning I could carve some time out to get a very simple compose desktop app working and check to see if it's using X to render or it's using native wayland.
t
Ok i see. On my CfD app the eyes are moving. Same like on IntelliJ. On other apps they are not moving
k
Seems it's using the XWayland compatibility layer then! I'm going to open an issue on their github.
Thanks for the help 🙂
t
you are welcome.
k
176 Views