Commit graph

378 commits

Author SHA1 Message Date
Simon Ser
f51bf51cef readme: recommend using "Draft:" prefix for RFC protocols
GitLab understands the "Draft:" prefix and will mark the MR
accordingly. GitLab used to understand the "WIP:" prefix, but
that's no longer the case.

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-06-12 08:36:58 +00:00
Simon Ser
6334324035 readme: use references for links
This avoids breaking the flow of the text when inserting links.

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-06-12 08:35:04 +00:00
Matthias Klumpp
e3c6a17a6f staging: Add xdg-toplevel-icon protocol for dedicated toplevel icons
This protocol allows clients to set icons for their toplevel windows.
Icons can be loaded from the XDG icon stock using their name, or can
alternatively be provided by the client as wl_shm-backed wl_buffer.

A toplevel icon represents the individual toplevel (unlike the
application or launcher icon, which represents the application as a
whole), and may be shown in window switchers, window overviews and
taskbars that list individual windows.

Resolves: #52

Signed-off-by: Matthias Klumpp <matthias@tenstral.net>
2024-06-01 17:55:52 +02:00
Simon Ser
1c36a3f3ca readme: s/Makefile.am/meson.build/
We haven't been using autotools for quite a while.

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-05-30 22:53:48 +02:00
Xaver Hugl
e71ed40ad7 staging/tearing-control: clarify what happens after wl_surface destruction
There's no protocol error for making requests on the object after the wl_surface
has been destroyed, so the object has to become inert in that case.

Signed-off-by: Xaver Hugl <xaver.hugl@kde.org>
2024-05-21 17:47:41 +00:00
Simon Ser
f573fa11cf ci: don't run pipelines in forks
Currently our CI setup has a downside: for each push on a merge
request, two pipelines are triggered. The first is triggered in
the context of the forked repository, and the second is triggered
in the context of the MR in the parent repository.

Replace the workflow rules with the ones in the official docs [1],
so that a branch pipeline isn't triggered when a MR exists for that
branch.

[1]: https://docs.gitlab.com/ee/ci/yaml/workflow.html#switch-between-branch-pipelines-and-merge-request-pipelines

Signed-off-by: Simon Ser <contact@emersion.fr>
Fixes: fbf7fc3517 ("ci: use detached CI pipelines")
2024-05-09 09:02:52 +00:00
Derek Foreman
c5b47dc928 various: Fix definition of double-buffered state
The strict "mailbox" model of wayland past is not how modern compositors
process commits, and many explanations of how double buffered state is
applied throughout wayland-protocols are no longer strictly accurate.

Instead of trying to define double-buffered state at every point of use,
just reference the evolving definition of wl_surface.commit.

This still leaves a few old definitions that weren't trivially updated.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
2024-05-06 09:45:35 +00:00
PolyMeilex
9bfb27f0a4
Fix some trivial typos
Fix typos in protocol files and in python code

Signed-off-by: Bartłomiej Maryńczak <marynczakbartlomiej@gmail.com>
2024-05-03 14:16:40 +02:00
Jonas Ådahl
24e612f7d7 build: Bump version to 1.36
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2024-04-26 09:33:20 +02:00
Simon Ser
6eae6815e8 xdg-dialog: fix missing namespace in protocol name
Signed-off-by: Simon Ser <contact@emersion.fr>
2024-04-22 17:33:24 +02:00
Jonas Ådahl
08d1c7276d build: Bump version to 1.35
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2024-04-17 15:08:48 +02:00
Simon Ser
72b5d90a02 tablet-v2: mark as stable
This protocol extension has not changed in a long time, is
widely supported, and no upcoming breaking changes are planned.

The interface names are left unchanged, so that compositors and
clients don't need to be updated. In particular, the legacy "z"
prefix is still part of the interface name.

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-04-11 11:42:43 +02:00
Xaver Hugl
8b8b518df0 staging: add alpha-modifier protocol
This protocol allows clients to set an alpha multiplier for the whole surface,
which allows it to offload alpha changes for the whole surface to the compositor,
which in turn can offload them to KMS.

Signed-off-by: Xaver Hugl <xaver.hugl@kde.org>
2024-04-03 13:48:31 +02:00
Sebastian Wick
1c57b24ff8 xdg-shell: add missing enum attribute to set_constraint_adjustment
Closes: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/177
Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
2024-03-27 18:15:30 +00:00
Simon Ser
a5536f9a8c xdg-shell: recommend against drawing decorations when tiled
Port the changes made in 31236887df ("xdg-shell: move maximized
state definition together") to the various tiled states.

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-03-26 10:46:26 +00:00
Sebastian Wick
aac8841f82 cursor-shape-v1: Does not advertises the list of supported cursors
Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
2024-03-26 10:16:22 +00:00
Jonas Ådahl
c7e9c4f5d3 build: Bump version to 1.34
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2024-03-20 18:59:10 +01:00
Simon Ser
8be7ad67fa linux-explicit-synchronization-v1: add linux-drm-syncobj note
The new protocol supersedes this one.

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-03-20 12:00:33 +01:00
Simon Ser
ae9ed7ac14 linux-drm-syncobj-v1: new protocol
This is a new Linux explicit synchronization protocol based on DRM
synchronization objects [1].

[1]: https://dri.freedesktop.org/docs/drm/gpu/drm-mm.html#drm-sync-objects

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-03-20 12:00:33 +01:00
Carlos Garnacho
9408483fb1 staging/dialog: Add "dialog" protocol
This simple protocol definition allows clients to express a "dialog"
relationship of a toplevel with its parent and extend the possible
hints. This allows compositors to attach certain behavior according
to these hints.

Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
Reviewed-by: Sebastian Wick <sebastian.wick@redhat.com>
2024-03-14 12:47:54 +00:00
Simon Ser
0819d97313 tablet-v2: clarify that name/id events are optional
libinput may not always have a descriptive name for a tablet
device, in which case it's better to let the Wayland client
pick a fallback (potentially localized) than send a fake string.

Not all tablet devices are USB, so make it clear that the id
event may be skipped.

Signed-off-by: Simon Ser <contact@emersion.fr>
Closes: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/180
2024-02-29 13:11:57 +01:00
Poly
4c8840ce04
Fix typo in ext-foreign-toplevel-list-v1
Fix double "should" in ext-foreign-toplevel-list-v1

Signed-off-by: Bartłomiej Maryńczak <marynczakbartlomiej@gmail.com>
2024-02-10 03:17:24 +01:00
David Redondo
c4f897d660 Add xdg-toplevel-drag protocol
This protocol allows applications to request that a window is moved
at the same time as a drag operation - effectively dragging windows.
With this features such as detaching a tab from a window and reattaching
it, dragging tabs between windows or (un)dockable tool windows can
be implemented.
Based on the previously proposed extended drag protocol but trimmed
down.

Signed-off-by: David Redondo <kde@david-redondo.de>
2024-01-30 12:22:26 +00:00
Daniel Stone
54346071a5 build: Bump version to 1.33
Signed-off-by: Daniel Stone <daniels@collabora.com>
2024-01-19 13:46:16 +00:00
Simon Ser
7f200185c2 ci: upgrade ci-templates and Debian
Upgrade Debian to bookworm and ci-templates to the latest commit.

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-12-27 19:56:50 +01:00
Jonas Ådahl
46f201bd7b xdg-shell: Clarify what a toplevel by default includes
xdg-shell assumes that the client provides all parts of a toplevel
window, i.e. things like titlebar, drop shadow. There are already things
here and there implies it, but it could be helpful to spell it out.

This doesn't change any semantics - it's still valid, from the
perspective of the protocol, to create a toplevel without any
decorations, and it always has been, it just means that the semantical
intention is for them to be exactly so.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2023-12-27 18:43:47 +00:00
MaxVerevkin
9d83649b49 linux-dmabuf: sync changes from unstable to stable
Signed-off-by: Max Verevkin <maxxverrr@gmail.com>
2023-12-08 12:59:37 +02:00
Simon Ser
c4f559866f readme: make it clear that we are a standards body
wayland-protocols is more than just a repository of XML files.
Make this clear and link to the governance document and member
list.

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-11-24 18:50:43 +00:00
Simon Ser
0c4e041f64 linux-dmabuf: require all planes to use the same modifier
The kernel enforces this. Accepting a separate modifier per-plane is
an historical artifact.

Signed-off-by: Simon Ser <contact@emersion.fr>
Closes: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/29
2023-11-24 18:49:18 +00:00
Simon Ser
3ec5924254 readme: version should be included in stable protocol filenames
With the new rules, we always keep the major version, even for
stable protocols.

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-11-24 18:47:38 +00:00
Lleyton Gray
bde1c8712d
staging/drm-lease: fix typo in description
Signed-off-by: Lleyton Gray <lleyton@fyralabs.com>
2023-11-09 13:57:58 -08:00
Simon Ser
87e0ce44f3 presentation-time: stop referring to Linux/glibc
clock_gettime() has nothing Linux/glibc-specific.

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-10-30 20:56:24 +01:00
Sebastian Wick
999e443773 security-context-v1: Make sandbox engine names use reverse-DNS
Specifically this also changes the well-known name for flatpak from
"flatpak" to "org.flatpak". This would be a breaking change but there is
no released version of flatpak yet with security-context support.

Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
2023-10-24 10:11:33 +00:00
Simon Ser
479580dbe3 xdg-decoration: remove ambiguous wording in configure event
"ask the client" isn't very clear. Let's use the word "configure"
which is more explicit: the client doesn't have a say in this.
(Note, wording in the following paragraphs is clearer and uses the
word "must".)

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-10-17 12:14:03 +00:00
Simon Ser
079b6011a0 xdg-decoration: fix configure event summary
This was probably carried over from an early draft of the protocol.
This event is not a suggestion as the full description explains:
the client must ack it.

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-10-17 12:14:03 +00:00
d70af2ea1e governance: fix typos
Signed-off-by: Vaxry <vaxry@vaxry.net>
2023-10-12 22:12:56 +01:00
9ffeb975c3 README: fix typos
Signed-off-by: Vaxry <vaxry@vaxry.net>
2023-10-12 22:12:56 +01:00
Simon Ser
51bee6e074 linux-dmabuf: mark as stable
This protocol extension is ubiquitous. It's time to mark it as
stable.

The interface names are left unchanged, so that compositors and
clients don't need to be updated. In particular, the legacy "z"
prefix is still part of the interface name.

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-10-10 14:43:25 +02:00
Simon Ser
a113a93d83 build: add version for stable protocols
Stable protocols used to not have a version. But with the new
rules, they have one. Accomodate the build script for the new
rules.

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-10-10 14:42:05 +02:00
Simon Ser
78e38c57bf build: simplify dict loops
Instead of iterating on the keys and then using get(), iterate on
both keys and values.

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-10-10 14:42:05 +02:00
Andri Yngvason
e1abed62d5 Add the transient seat protocol
Signed-off-by: Andri Yngvason <andri@yngvason.is>
2023-10-07 16:54:24 +00:00
Simon Ser
90d13c1112 members: remove EFL/Enlightenment
EFL/Enlightenment hasn't been active in a while, doesn't seem to
have interest in the near future, and Mike is fine with ceasing
their membership. They can always be added back when interest
sparks again.

Signed-off-by: Simon Ser <contact@emersion.fr>
Closes: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/146
2023-09-30 01:30:59 +00:00
Simon Ser
e1d61ce940 linux-dmabuf: add note about implicit sync
Make it clear that implicit sync is the expectation without another
protocol extension.

Signed-off-by: Simon Ser <contact@emersion.fr>
2023-08-14 14:32:02 +02:00
Sebastian Wick
5293896cce security-context-v1: Document what can be done with the open sockets
Specifically that after calling create_listener the only valid operation
on the sockets is to close them. They also must stay open and valid
until a round-trip after the call.

Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
2023-07-11 15:27:14 +02:00
Sebastian Wick
b19ee1a7e3 security-context-v1: Document out of band metadata for flatpak
and specify when the invalid_metadata error will be sent.

Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
2023-07-11 15:27:02 +02:00
Jonas Ådahl
681c33c854 build: Bump version to 1.32
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2023-07-03 11:26:25 +02:00
Kirill Chibisov
174b3487a2 stable/xdg-shell: clarify initial wl_surface acknowledgement
Clarify how and when initial wl_surface state provided by the core
protocol or by extensions to the wl_surface, like as
wp_fractional_scale_v1, is being delivered.

The motivation for such change is to make it clear that the first frame
for xdg-shell will be perfect, which implies that scaling and similar
properties affecting presentation would be delivered in time.

Signed-off-by: Kirill Chibisov <contact@kchibisov.com>
2023-07-03 09:17:26 +00:00
David Redondo
3c1fb30817 xdg-activation: Clarify that the token stays valid if the object is destroyed
Signed-off-by: David Redondo <kde@david-redondo.de>
2023-07-03 09:15:34 +00:00
Simon Ser
12c063088e security-context-v1: new protocol
This is a variation of the unveil protocol I suggested in the Weston
issue about security contexts. This lets sandbox engines such as Flatpak
attach a security context to sandboxed clients. The compositor can then
restrict which features are made available to that client.

The protocol is designed around the assumption that the sandbox engine
uses this protocol when setting up the sandboxed application. After this
inital setup, the sandbox engine isn't necessarily running anymore.
For this reason, a special "close FD" is used to indicate when to stop
the security context listener: the sandbox engine can leak the FD into
the sandboxed app's process, and the OS will automatically close the FD
when the sandboxed app exits.

Signed-off-by: Simon Ser <contact@emersion.fr>
References: https://gitlab.freedesktop.org/wayland/weston/-/issues/206
2023-07-03 09:13:08 +00:00
Daniel Stone
c124b641b3 xdg-shell: Add suspended toplevel state
Add a toplevel state to indicate that surface repaints have been
suspended. This may arise due to occlusion, output power state, etc.

In this state, clients can choose to take meaningful action such as
suspending any processing which would drive a repaint loop, or
communicating to the active browser tab that the tab is not
system-visible, or any other action that would be taken by a client not
expecting to repaint until further notice.

cf. discussion in wayland/wayland-protocols!99

Signed-off-by: Daniel Stone <daniels@collabora.com>
2023-06-15 17:43:00 +01:00