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
335 questions
58
votes
4 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
  • 14,503
  • 5
  • 30
  • 38
30
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
  • 6,240
  • 5
  • 40
  • 48
28
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
  • 11,402
  • 10
  • 52
  • 72
19
votes
2 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
  • 2,238
  • 5
  • 20
  • 32
16
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
  • 199
  • 1
  • 1
  • 7
15
votes
1 answer

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
  • 8,868
  • 11
  • 58
  • 132
15
votes
5 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
  • 173
  • 1
  • 1
  • 8
14
votes
3 answers

How to take screenshot under Wayland?

I want to write a simple tool that will take screenshots at Wayland. Am I right in my understanding that it would be completely different from Xorg? Could anybody give me any examples?
Suliman
  • 1,469
  • 3
  • 13
  • 19
13
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
  • 19,847
  • 9
  • 124
  • 140
13
votes
1 answer

How to port WM to wayland?

Are there any examples to port existing WM from X11 to wayland? For example, porting light-weighted WMs (such as dwm, wmii, awesome) to wayland. Maybe, portings dwm to wayland is a good example.
Vivodo
  • 1,542
  • 2
  • 17
  • 31
11
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
  • 3,250
  • 26
  • 44
9
votes
1 answer

How to set up nested Wayland Desktop Environment with systemd-nspawn container, like VirtualBox

I'll need someone to walk me through setting up Wayland Desktop Environment with linux within a systemd-nspawn container.
user1028880
9
votes
0 answers

Transform virtual screen in Wayland

The top of my laptop screen is broken and I am unable to view anything within a 1600x82 rectangle. Is it possible in Wayland/XWayland to transform the virtual screen so that only the visible area of my monitor is used? I managed to hack together a…
daxvena
  • 1,140
  • 3
  • 14
  • 30
8
votes
1 answer

How to run Electron apps like Slack etc for Wayland?

It seems that Electron has not support Wayland yet. About Electron issue: Consider providing a build for Wayland Does anybody know how to compile Electron to support Wayland native? (step by step) and run Electron apps in Wayland(Weston etc...). It…
caijw
  • 81
  • 1
  • 1
  • 2
8
votes
2 answers

How to copy from Vim to system clipboard using wayland and without compiled vim `+clipboard` feature flag

I cannot copy into the + or * register. :echo has('clipboard') from within Vim returns 0 meaning I don't have that feature flag, I don't want to recompile. I'm running wayland so I cannot use X11 based solutions
brother-bilo
  • 490
  • 4
  • 11
1
2 3
22 23