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

Switch monitor position in Weston

Is it possible to indicate monitor position in Weston/Wayland? I have two monitors and been testing the Weston compositor, but I have been unable to indicate which monitor should be the main one (or which one should show the "left part" of the…
josejorge
  • 76
  • 6
4
votes
1 answer

Alternative for Xephyr in wayland

I'm searching for a tool to test my codes, I always do it using Xephyr for Xorg. Now Is there any alternative for Xephyr in Wayland?
user3312948
4
votes
0 answers

Draw text on a Wayland surface in C

I am a newbie in Wayland programming. Currently, I wanna create an application which can show FPS of a playing video on a surface of a Wayland client. First, I use Gstreamer to read fps. I already executed 2 ways to get FPS: [ 1 ] using timer…
Thảo M. Hoàng
  • 1,224
  • 3
  • 20
  • 42
4
votes
2 answers

Effective way of detecting X11 vs Wayland, preferrably with CMake

So I've done some Google searching and this is something that has very little knowledge out there. What would be an effective and foolproof way of detecting whether X11 or Wayland is in use, preferrably at compile-time and with CMake? I need to…
Phobos D'thorga
  • 439
  • 5
  • 17
4
votes
1 answer

setting a virtual resolution in wayland

Is it possible to set a virtual resolution of a screen, meaning increasing its resolution over its normal resolution (say, I've got a 1920x1080 screen, can I use it like it was a 3640x2160 screen)? With X it was easy, just xrandr --scale 2x2, but…
dodormeur
  • 51
  • 1
  • 4
4
votes
1 answer

linux Wayland display multiple-user

I use sway compositor. When I change user in console, I can NOT display a wayland graphic interface (It work with a X application) $ su - otherUser $ ./myApplicationWayland error: XDG_RUNTIME_DIR not set in the environment I set it: (get from the…
Heero Yui
  • 150
  • 1
  • 8
4
votes
1 answer

Qt 5.7 How can I check value of variable QT_QPA_PLATFORM at runtime?

I know how to check default platform, but I need to check in my application if it run on X11 or Wayland. I try this: QString platform = qgetenv("QT_QPA_PLATFORM"); but it returns an empty string. On Weston when I run my application I set…
Magda Aarsman
  • 191
  • 2
  • 15
4
votes
0 answers

Use Qt 5 Wayland QPA plugin to set window transparency with wl_surface

I have three Qt 5 applications that work fine independently on the BeagleBone X-15 using the Qt 5 Wayland plugin on the TI SDK image. When I launch them, they fill the whole screen so that the first app launched is covered by the second, and the…
PhilBot
  • 748
  • 18
  • 85
  • 173
4
votes
7 answers

Is it possible to remove Weston toolbar?

Is it possible to have weston run without the toolbar at the top and change the background to black. So that when i have a script in init.d it calls weston first than my qt5 app? such as: weston & /home/root/app -platform wayland
Bbbh
  • 321
  • 7
  • 20
4
votes
2 answers

Wayland cross compiling makefile error

I am trying to cross compile wayland for an arm-linux platform. During the make, I am getting following error.. CC src/scanner.o CC src/connection.lo CC src/wayland-util.lo CC src/wayland-os.lo CCLD …
4
votes
1 answer

How to determine in which window events are coming

I have two EGL windows belonging to the same Wayland display. Windows are only displayed on the full screen. Mouse and keyboard events come into the display. How to determine which window belongs to which came the event? It seems to me to be…
3
votes
0 answers

window.open ignores (with firefox & safari) specified height and width when parent window is maximized

I'm tryng to make my js code open popup, with specified position, height and width. let windowFeatures = "left=100,top=100,width=800,height=600" window.open('img.html', 'foobar', windowFeatures); On Ubuntu 22.04, with Firefox (105.0.2), the…
arnaudbey
  • 880
  • 1
  • 11
  • 19
3
votes
0 answers

Is it safe to force QT_QPA_PLATFORM=xcb on Linux Desktop?

I recently found that our Qt application uses "own" window frame instead of the system frame on Ubuntu 21.10. As a result, the look is weird, especially in the dark theme. The investigation shown that is a known Qt+Gnome+Wayland issue. It can be…
Nikolay
  • 168
  • 1
  • 9
3
votes
0 answers

How to find screen workarea on Wayland?

I need to find workareas of multiple screens on Wayland. When my application run on Xorg, I can find it by watching on _GTK_WORKAREAS_D0 property of root window on GNOME 3.36+, or by searching panel windows (which has _NET_WM_WINDOW_TYPE_DOCK type)…
3
votes
0 answers

Is there a Wayland backend for R?

I compiled R 4.1.0 from source on my Fedora 34 Workstation. I had to install the X11 libraries to do so. Is there a way to enable Wayland, so that it renders on Wayland directly? I am also having problems with X11, see here.
robertspierre
  • 3,218
  • 2
  • 31
  • 46