Commit graph

509 commits

Author SHA1 Message Date
Derek Foreman
37a1560cf6 commit-timing-v1: Add new protocol
Add a new protocol for adding timestamps to wayland surface state to
allow deferring processing until later.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
2024-10-11 18:47:41 +00:00
Derek Foreman
1ccc5748ac fifo-v1: Add new protocol
Add a new protocol to allow a content update to require a
display refresh pass before it is ready to present.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
2024-10-11 13:29:33 -05:00
Simon Ser
9e5b8a4e9a governance: drop adoption website section
Originally we wanted to have an official website to document
adoption. However this never materialized.

I don't think the governance document is the right place for this
anyways.

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-10-11 18:13:15 +00:00
Jonas Ådahl
df207cbd46 Add staging system bell protocol
This is meant to let applications ring the system bell. It needs to be a
Wayland protocol because a system bell is not necessarily audiable; for
for example accessibility reasons, it might need be a visual feedback,
which may be tied to a specific window. Accessibility features are
usually configured globally, and one likely wants identical visual
feedback for all system bell ringings, so it doesn't fit as a client
side only feature.

This aims to replaced and deprecate the `gtk_shell1.system_bell`
request.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2024-10-10 22:48:29 +00:00
Jonas Ådahl
7e8df47b41 members: Add mesa as a member
Mesa is represented by Daniel Stone and Mike Blumenkrantz.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2024-10-10 03:22:15 +00:00
Jonas Ådahl
42938b7e74 members: Update weston point-of-contact
Daniel Stone will move to represent mesa, and Derek Foreman is taking
his place.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2024-10-10 03:22:15 +00:00
Simon Ser
a00f35149e ext-image-copy-capture: fix typo
Signed-off-by: Simon Ser <contact@emersion.fr>
2024-10-09 12:49:44 +00:00
Daniel Stone
657561dcc3 README: Suggest pinging protocol authors on changes
These are usually the best people to review the changes.

Signed-off-by: Daniel Stone <daniels@collabora.com>
2024-10-09 09:07:11 +00:00
Daniel Stone
3544c6dcc4 protocols: Add GitLab contact information
This is useful to know who to ping when you want to change something.

Signed-off-by: Daniel Stone <daniels@collabora.com>
2024-10-09 09:07:11 +00:00
itycodes
ea7e5ef693 ext-image-copy-capture-v1: Fix typo in ext_image_copy_capture_frame_v1::destroy
Signed-off-by: Tranquil Ity tranquillitycodes@proton.me
Closes: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/217
2024-10-07 14:20:51 +00:00
Sebastian Wick
02c589c2d8 cursor-shape-v1: Make object inert when underlying cap is destroyed
It was undefined before how long the wp_cursor_shape_device_v1 has any
effect. Let's specify that the object becomes inert when the pointer cap
goes away or the tablet tool is removed. In those cases the client has
to create a new pointer/tablet tool, and also a new cursor shape device
when the cursor caps or a new tablet tool reappears.

Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
Closes: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/186
2024-10-06 09:35:17 +00:00
Simon Ser
c997223583 build: install headers with enums
Generate and install headers containing enums. See [1].

Meson requires us to generate headers in a "include/wayland-protocols"
directory, so that include paths can be properly set up when used
as a sub-project.

[1]: https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/312

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-10-05 15:30:01 +00:00
Nick Diego Yamane
e7fea17be8 xdg-toplevel-drag: clarify offset is relative to geometry
The current description is not clear about it, though the only available
implementation works like that, so make it explicit in the protocol
description.

Signed-off-by: Nick Diego Yamane <nickdiego@igalia.com>
2024-10-05 14:58:43 +00:00
Simon Ser
9b95f83a2f xdg-output: mark done event with deprecated-since attribute
Signed-off-by: Simon Ser <contact@emersion.fr>
2024-10-05 14:35:30 +00:00
Simon Ser
6c214e6dc0 linux-dmabuf: mark format/modifier with deprecated-since attribute
Signed-off-by: Simon Ser <contact@emersion.fr>
2024-10-05 14:35:30 +00:00
Simon Ser
98d8bb6716 ci: upgrade wayland to v1.23.1
Signed-off-by: Simon Ser <contact@emersion.fr>
2024-10-05 14:35:30 +00:00
Simon Zeni
bdb88cec2b drm-lease-v1: advertise connector again upon lease finished event
Signed-off-by: Simon Zeni <simon.zeni@collabora.com>
Reviewed-by: jexposit@redhat.com
2024-10-05 13:14:38 +00:00
Simon Zeni
950b7384b9 drm-lease-v1: advertise connector again upon lease destruction
Signed-off-by: Simon Zeni <simon.zeni@collabora.com>
Reviewed-by: Xaver Hugl <xaver.hugl@kde.org>
2024-10-05 13:14:38 +00:00
Simon Zeni
05e777f476 drm-lease-v1: specify existing lease status on withdrawn event
Signed-off-by: Simon Zeni <simon.zeni@collabora.com>
Reviewed-by: Xaver Hugl <xaver.hugl@kde.org>
2024-10-05 13:14:38 +00:00
Julian Orth
f30b27a0ee security-context-v1: clarify close_fd behavior
Signed-off-by: Julian Orth <ju.orth@gmail.com>
2024-09-25 16:22:51 +00:00
Simon Ser
6f5772fd69 xdg-toplevel-icon: clarify that wl_buffer.release is unused
The protocol as-is doesn't allow clients to mutate wl_buffers.
Let's make it clear that wl_buffer.release is not used for that
purpose. Buffer re-use can be added in a future protocol version
if desirable.

Add a small note to explain that no wl_buffer mutation implies no
wl_shm_pool's backing storage mutation as well.

Signed-off-by: Simon Ser <contact@emersion.fr>
Closes: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/201
2024-09-08 10:44:03 +02:00
Simon Ser
b4a42c88f4 xdg-shell: clarify clients set their initial state before initial commit
It wasn't clear that it's important clients set up their initial
xdg_surface state before they send the initial commit. This is
required for the compositor to be able to send a proper configure
event depending on size constraints and any policies it might want
to apply (e.g. specific app ID always shows up in a designated
workspace).

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-09-05 19:15:01 +00:00
Simon Ser
df2b5e5e7b xdg-decoration: add invalid_mode error
There is no error defined for invalid mode values.

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-09-03 10:27:40 +00:00
Jonas Ådahl
4878e025a5 build: Bump version to 1.37
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2024-08-31 09:25:04 +02:00
Simon Ser
c4df317ea6 xdg-toplevel-icon: add error for destroyed wl_buffer
This requirement was missing an error code.

Signed-off-by: Simon Ser <contact@emersion.fr>
References: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/201
2024-08-30 17:21:00 +00:00
YaoBing Xiao
d1d185c61f pointer-gestures: Add punctuation to clarify gesture cycles
Signed-off-by: YaoBing Xiao <xiaoyaobing@uniontech.com>
2024-08-22 15:32:28 +08:00
Nicolas Fella
5d2edef111 tablet-v2: Fix feedback description in mode_switch
Visual cues are for the user, not the client software

Signed-off-by: Nicolas Fella <nicolas.fella@kde.org>
2024-08-21 18:55:34 +00:00
Andri Yngvason
f4925c9313 ext-image-copy-capture-v1: new protocol
Signed-off-by: Andri Yngvason <andri@yngvason.is>
Signed-off-by: Simon Ser <contact@emersion.fr>
Co-authored-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Simon Zeni <simon@bl4ckb0ne.ca>
2024-08-10 17:24:46 +02:00
Andri Yngvason
c543ade77b ext-image-capture-source-v1: new protocol
Signed-off-by: Andri Yngvason <andri@yngvason.is>
Signed-off-by: Simon Ser <contact@emersion.fr>
Co-authored-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Simon Zeni <simon@bl4ckb0ne.ca>
2024-08-08 09:22:36 +00:00
Simon Ser
7d5a3a8b49 governance: document review requirements
This has been the standard practice but wasn't really documented
anywhere.

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-06-19 18:58:05 +00:00
Simon Ser
903f85708e members: trim trailing comma
Smithay/Comsmic only has a single point-of-contact.

Signed-off-by: Simon Ser <contact@emersion.fr>
2024-06-17 23:17:16 +02:00
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