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
0
votes
0 answers

PyQt5 and Wayland. A gtk-layer-shell python module for Qt5?

I have some python applications using the Qt5 libs I want to port/use under Wayland/wlroots. I have searched for documentation everywhere but I haven't found really nothing, apart about compositors. With the Gtk3 libs very useful is the module…
franky99
  • 53
  • 1
  • 6
0
votes
1 answer

Wayland add window positioning

I try to use HEADERBAR, but cannot found information about how add it to non-toplevel-window/widget. I need to allow user to move window, but only in certain condition (when user invokes specific window mode). I see Firefox work with PIP…
nintyfan
  • 386
  • 3
  • 16
0
votes
0 answers

How to create a custom layout and variant keyboard in Wayland Linux

My Config I use Ubuntu 22.10 with Gnome. I use a custom QWERTY keyboard for french. It's the QWERTY Lafayette. https://qwerty-lafayette.org/ The problem In many applications like vscode, my keyboard does not work and remains in qwerty us. So I can't…
jessy
  • 21
  • 4
0
votes
1 answer

How does hardware accelerated scrolling work in modern devices?

In VGA mode of the PC and in some older game consoles, it is possible to scroll the display by a pixel by incrementing a register. This only uses a single CPU instruction. In modern devices, including laptops and mobiles with GPUs, do they still use…
itsfarseen
  • 1,109
  • 10
  • 25
0
votes
0 answers

Mouse position offset while running Steam inside Weston

I installed and ran Steam inside Weston, when I enter Steam classic layout (not big screen), the mouse position is off where Steam thinks it's pointing at. For example: Here my cursor is not pointing at LIBRARY tab on the upper taskbar, however…
0
votes
1 answer

Moving (repositioning) a Child Window or Dialog in Gtk / Gtkmm

A child Gtk::Window or Gtk::Dialog may be moved around by dragging on the title bar. Being top level windows this activity requires support from the window manager. What is the mechanism by which Gtk requests the window manager to move the position…
Mohith
  • 75
  • 7
0
votes
0 answers

Pasting files from clipboard into browser

I'm trying to implement file pasting in the browser using the following code document.onpaste = function (event) { for (var item of event.clipboardData.items) { if (item.kind == 'file') process(item.getAsFile()); …
glk0
  • 17
  • 6
0
votes
2 answers

wxWidgets wxGetKeyState() and Wayland issue

I have run into a wxGetKeyState() issue with Wayland. Let me explain: In some of my apps, I add a test for the Shift key being pressed in the ctor of my app’s top wxFrame window. If the Shift key is down during launch, I run diagnostic code relevant…
Bob Enohp
  • 1,302
  • 12
  • 11
0
votes
0 answers

Vulkan Wayland hangs on vkCmdBeginRenderPass

I'm trying the Vulkan tutorial on Wayland. I'm following this turorial: https://vulkan-tutorial.com/Introduction It is a port of wayland-egl and OpenGL ES 3 to Vulkan. Every steps fine but I have a trouble in final draw frame function. In recording…
hardboiled65
  • 161
  • 2
  • 10
0
votes
0 answers

Work arounds for lack of QWidget::move under Wayland

I think I understand the reasoning behind Wayland preventing windows from being manually positioned but there are a couple of instances in my Qt 5.15.2 application where I really need to have either some or absolute control over the position: In…
0
votes
1 answer

Setting 3440x1440 resolution makes screen turn off in sway

I am trying to increase the refresh rate of my monitor. I first get my monitor information using this command: swaymsg -t get_outputs which returns these informations Output DP-3 'Unknown U34G2G4R3 0x0000094A' (focused) Current mode: 3440x1440 @…
Jaro
  • 1,587
  • 5
  • 20
  • 39
0
votes
1 answer

Qt application crash on Wayland

I've recently installed Ubuntu 22.04 LTS on my development laptop. Previously I was running 18.04 so this is my first experience of Wayland. I did a clean installation on a new disc. I had relatively few problems reinstalling gitkraken and…
0
votes
0 answers

Linking C++ Wayland application with g++ not possible?

I am trying to link a Wayland C++ application with g++ and got stuck. It should be possible to link to the Wayland libraries from C++ since the headers (wayland-core.h, wayland-client.h etc.) correctly put the API calls into an extern "C" scope. I…
Andreas Spindler
  • 7,568
  • 4
  • 43
  • 34
0
votes
0 answers

Can JavaFx support Linux Gnome Wayland fractional scaling?

I downloaded the latest Open JavaFX SDK, 17.0.2 for x64 Linux, and ran the sample HelloFX code using the instructions. I did not make any changes to them. The problem is that the text looks blurry if fractional scaling is enabled.Is there an easy…
Damn Vegetables
  • 11,484
  • 13
  • 80
  • 135
0
votes
1 answer

How to get pynput code to work under Wayland (and Windows, too)?

I have a trivial example program that works on Windows and from within PyCharm (on Linux, on a Wayland display): from pynput import keyboard from queue import Queue kbd_q = Queue(maxsize=1) def on_activate_s(): kbd_q.put("Hotkey…
Andreas Schuldei
  • 343
  • 1
  • 15