Questions tagged [wayland]

Wayland is protocol for providing graphical output to Linux/Unix users. It is intended to be a lightweight alternative to the X11 subsystem.

Wayland is a protocol for a compositor to talk to its clients as well as a C library implementation of that protocol. The compositor can be a standalone display server running on Linux kernel modesetting and evdev input devices, an X application, or a wayland client itself. The clients can be traditional applications, X servers (rootless or fullscreen) or other display servers.

Source: wayland.freedesktop.org

Implementations

The later lists are not exhaustive and subject to a lot of change.

Server-side dedicated libraries and compositors

  • Weston: The reference implementation.
  • swc: A library implementing a minimal wayland compositor.
  • Waysome: (in progress) A window manager.
  • wlc: (in progress) A compositor library.
  • Loliwm: A tiling window manager based on wlc
  • Velox: A window manager based on swc.
  • Clayland: A clutter-based compositor.

Client

Graphical libraries supporting Wayland:
  • Gtk+
  • EFL
  • SDL
  • Clutter
  • Qt 5
Programming language supporting libwayland:
  • C
213 questions
44
votes
3 answers

How do I get the active window on Gnome Wayland?

Background: I'm working on a piece of software called ActivityWatch that logs what you do on your computer. Basically an attempt at addressing some of the issues with: RescueTime, selfspy, arbtt, etc. One of the core things we do is log information…
erb
  • 11,164
  • 4
  • 24
  • 35
25
votes
3 answers

Where do I start if I want to write a wayland compositor?

I imagine there isn't a "Beginner's guide to wayland server programming" drifting around the web, and the weston source looks daunting. Is there a barebones wayland server I can look at to give me an idea where to start? Something I can run under X…
J V
  • 9,736
  • 7
  • 41
  • 64
23
votes
4 answers

How to start GNOME Wayland session from command line/tty?

I'm experimenting with wayland. You can start Gnome with X through startx command. Is there an way to start Gnome with wayland through some command? I would like to be able to run Gnome/X on my main display. Then switch to display :2…
Leo Ufimtsev
  • 4,670
  • 4
  • 31
  • 43
11
votes
3 answers

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…
ShadowDragon
  • 1,888
  • 3
  • 13
  • 29
11
votes
3 answers

Java GUI support on Wayland

I want to include Java GUI support on my system which has only wayland backend supported. I tried to include OpenJDK-7-jre package, but it seems to have X11 dependency. I compiled ‘Openjre-8’ package successfully and included in my image. But, it…
vinoth kumar
  • 133
  • 1
  • 8
10
votes
3 answers

Wayland clipboard API

Is there such a thing as a clipboard API in Wayland? Or where should I look to paste contents to the clipboard programmatically? I am running Fedora 24 on Wayland. Having a single clipboard if perfectly fine with me, so is there a code example (in…
anatoly techtonik
  • 17,421
  • 8
  • 111
  • 131
10
votes
3 answers

How to take screenshot under Wayland?

A want to write simple tool that will take screenshots at Wayland. Am I right with my understanding that it would be completely different from Xorg? Could anybody give me any examples?
Suliman
  • 1,301
  • 2
  • 11
  • 19
9
votes
3 answers

List screen resolutions using Wayland/Weston

I am porting some tests from X11 to Wayland and there is little to no information on how to list the available resolutions supported. All the examples that use Wayland and EGL manually specify the screen resolution to be used. I would like to list…
000Camus000
  • 119
  • 1
  • 5
9
votes
1 answer

How do I set the x,y coordinates of a window in Wayland?

Apparently this is something that's not part of the core Wayland protocol, but I am using Weston and the xdg-shell extension appears to have the necessary method: xdg_surface_set_window_geometry So I ran wayland-scanner to create xdg code and header…
mpr
  • 2,744
  • 20
  • 32
8
votes
0 answers

On Wayland is there a way today to get the currently focused windows title and process ID?

On X11 I used to use xprop to get information about active windows but on Wayland that tool doesn't work anymore. There have been questions like this, or this one which ask basically the same question as I do, and the answer is: no, this is not…
frans
  • 6,905
  • 8
  • 40
  • 95
8
votes
0 answers

How to sync using glutSwapBuffers in Wayland?

I noticed that my animation suffers from artifacts that look like missed vblanks. No visible tearing, but sometimes the frame halts for a split second and then visibly jumps. I decided to measure the time between buffer swaps: void draw_cb() { …
The Vee
  • 10,647
  • 5
  • 22
  • 50
7
votes
1 answer

How does EME prevent me from recording a netflix stream?

So we have DRM in our free software browsers now, and apparently it works quite well. The video is however still subject to the usual compositing. I am running Fedora 25 including the wayland display server. If I do understand its architecture…
choeger
  • 3,270
  • 12
  • 28
7
votes
0 answers

Linux overlay information on top of (fullscreen) application

I'm working on a linux platform for running games. On that platform, while a game is running in full screen, I need to be able to on certain hardware input, e.g. a flip of a switch, to freeze and disable all input to the game and overlay information…
valorcurse
  • 255
  • 2
  • 10
7
votes
1 answer

How to create an OpenGL 3.3 or 4.x context through EGL

I am interested in making an OpenGL app which doesn't depend on X11. As I have seen, this should be possible through EGL. There are even examples on the internet. But how can I control the context version? The sample code below creates an OpenGL…
thefunkyjunky
  • 397
  • 3
  • 14
7
votes
1 answer

Simulate mouse motion on linux wayland

I receive xy data from my network and i would like to control the mouse position using linux on wayland. I've seen many source codes using X libs or X apps but it will not work on wayland. I also have a look on libinput and evedev but i don't find…
Erwan Douaille
  • 550
  • 1
  • 5
  • 30
1
2 3
14 15