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
3
votes
1 answer

How do Wayland clients communicate with the server?

I know that the X window system protocol was based over a network, and this is how clients communicate with the X server. Now Wayland seeks to remove this network reliance. My question is, how are Wayland clients supposed to communicate with the…
Nishant George Agrwal
  • 2,059
  • 2
  • 12
  • 14
2
votes
0 answers

On wayland, why is my default Gtk display an X11Display?

I'm learning GTK4 and working with wayland (hyprland) on linux. When I try to retrieve the default display, my python code returns an X11Display. I figured out that the GDK_BACKEND environment variable was not set to wayland. However, my question…
David
  • 33
  • 3
2
votes
1 answer

Automate mouse pointer motion in Wayland on Debian (Not X11/X Window System)

I am trying to find a way to simulate/automate mouse motion using the Wayland protocol on a debian based OS as did using Xlib in X11/X Window System giving the x and y coordinates: from Xlib.display import Display from Xlib.ext.xtest import…
theEarlyRiser
  • 134
  • 12
2
votes
0 answers

Running notify-send as root under Wayland

I need to send a desktop notification to the user from some shell scripts using notify-send, so i found this answer and it's working under X11 without any problem, so i tried to add Wayland support to the script by using $WAYLAND_DISPLAY to make it…
markoly
  • 33
  • 4
2
votes
1 answer

SDL_DrawRect() does not draw a proper rect

When I try to draw a rectangle, the bottom line always is one pixel up on the right side: The problem also persists when I change the size and position. Below I have a minimal working solution that should reproduce the problem, if it's not my…
Aaron H
  • 134
  • 10
2
votes
0 answers

How can I get Monitor Connection information from Wayland?

When running under X, I can get information about the monitor connection as follows: $ xrandr --verbose DP-0.8 connected 2560x1440+2560+0 (0x1bd) normal (normal left inverted right x axis y axis) 597mm x 336mm ... SignalFormat: DisplayPort…
Andrew Marshall
  • 1,469
  • 13
  • 14
2
votes
0 answers

Is there any way to make my qt window stay's always on top at specified position in kwin wayland

I was working on a screen overlay application that can be used to draw anywhere on the screen. for that, I want to stay my window always on top of other Wayland windows. I've already managed to do that in X11 by using window flags…
2
votes
1 answer

Is there a way to find whether theuser is using Wayland instead of X11, WITHOUT enviroment variables? (C)

I am currently working with C and SDL2, and I need to know whether Wayland is currently used as the windowing system (Obviously because I want to use Wayland, but SDL2 defaults to Xwayland). While SDL_VIDEODRIVER=wayland does work, it won't work if…
AggelosT
  • 108
  • 1
  • 9
2
votes
0 answers

Bind a key combination for GNOME overlay

Using GNOME 42.3.1 (Wayland) on fedora 36, the default key to launch the GNOME activities overlay is Super. I'd like to change that to Super-return. I installed dconf-editor and used it to change the value at org.gnome.mutter.overlay-key to…
Benny Powers
  • 5,398
  • 4
  • 32
  • 55
2
votes
2 answers

How can I get a screenshot on Wayland with pure Python?

As of the latest Pillow version (9.1.0), the grab() function to get a screenshot only works on X11 and not Wayland. When I disable Wayland, it works fine. How can I get screenshot on Wayland with pure Python? Ideally the solution doesn't involve…
Al Sweigart
  • 11,566
  • 10
  • 64
  • 92
2
votes
0 answers

How can I specify a custom display resolution on Fedora 35 (GNOME Wayland)?

How can I specify a custom display resolution on Fedora 35 (GNOME Wayland)? I've tried changing Displays > Resolution, but the maximum resolution available is 1920x1080 (16:9). I would like to set the resolution to 2560x1080 (21:9).
IslandPatrol
  • 261
  • 3
  • 11
2
votes
0 answers

Adding C header files in C++ using extern "C" Generates error on 'static' type

I was working on a wayland compositor based on C++. My project uses wlroots which is a C Library. I have a set of header files in wlroots which i need to add to my C++ project. I used extern "C" to include c header files but it was showing errors on…
trickymind
  • 557
  • 5
  • 21
2
votes
0 answers

How to bind Cairo surface data to EGL in Wayland

I'm trying to using cairo from wayland client. The reference guide from https://jan.newmarch.name/Wayland/Cairo/ Unfortunately, my system doesn't have cairo-gl, and I don't want to manually compile Cairo with gl support. So I decided to directly…
hardboiled65
  • 161
  • 2
  • 10
2
votes
1 answer

how to make firefox use alsa audio output (pipewire)

I am having sound issues with my firefox. The problem is that, sound comes off as almost muted and sounds like it is coming out from the back speakers. My firefox is using wayland I've had a similar problem with VLC. I was able to easily fix VLC by…
an0nhi11
  • 59
  • 1
  • 7
2
votes
0 answers

How to create an EGL window in Wayland and set its position on screen?

I have a working program that creates an EGL window in Wayland. I can control the window size, but not its position on the screen. Right now, if I set the size to match the size of the screen, it will run fullscreen but if I set anything less than…
Michal Artazov
  • 4,368
  • 8
  • 25
  • 38