mutter:gnome-41

Last commit made on 2022-08-11
Get this branch:
git clone -b gnome-41 https://git.launchpad.net/mutter

Branch merges

Branch information

Name:
gnome-41
Repository:
lp:mutter

Recent commits

e8099b9... by =?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>

Bump version to 41.9

Update NEWS.

2f470ed... by Jonas Ådahl

Revert "x11/input-selection-stream: Handle Xwayland going away"

The backport is for a fix that isn't applicable to the gnome-41 stable
branch, since it relies on selections themselves owning the X11 window.
The fix was about cleaning up that window on finalize, but that falls
apart of the window isn't actually owned by the selection itself.

This reverts commit 16b7dce9cb1313d08a594c20697cea9d0b8812f0.

ed7b828... by =?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>

Bump version to 41.8

Update NEWS.

b058d4e... by Olivier Fourdan <email address hidden>

backends: Move MetaKeyboardA11yFlags to a public header

The MetaKeyboardA11yFlags are used by gnome-shell to show a dialog
whenever a keyboard accessibility feature is switched using the
keyboard.

Unfortunately, commit c3acaeb25 renamed the Clutter flag to Meta and
moved them to a private header. As a result, gnome-shell do not show any
dialog anymore when a keyboard accessibility feature is activated.

Move the MetaKeyboardA11yFlags definition to a public header so that
gnome-shell can use it.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2306
Fixes: c3acaeb25 - backends: Move keyboard a11y into backends
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2463>
(cherry picked from commit 1c16e1cb9c6b0c62dad4c318117324af6485fada)

656235b... by Robert Mader

wayland/surface: Swap 90 and 270 degree transforms

Our internal interpretation of output transforms is not in line with
the Wayland spec. Wayland describes them as the transform that a
compositor will apply to a surface to compensate for the rotation
or mirroring of an output device - counter-clockwise.

Mutter in turn interprets it the other way around. One could
argue it does the same but clock-wise - or it interprets the transform
from the viewpoint of the content, not the device.

In either way, the difference is that 90 and 270 degree values are
switched. Thus swap these accordingly when we translate from
`WL_OUTPUT_TRANSFORM` to `META_MONITOR_TRANSFORM`.

See: https://gitlab.freedesktop.org/wayland/weston/issues/99
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1055>

(cherry picked from commit 8d9bbe109b16969557672330da0d6a26adc8eae2)

b7c5ce6... by Jonas Ådahl

kms/crtc: Determine gamma support given the gamma length

The property doesn't necessarily exist when using drivers that doesn't
support atomic mode setting, and the way it worked will break night
light and other gamma related features. This makes things use the gamma
length; if it is higher than 0, it definitely supports it one way or the
other, i.e. GAMMA_LUT with the atomic backend, and drmModeCrtcSetGamma()
with the legacy/simple backend.

Fixes: 364572b95c8354ac66674064a8058aa98bc0bbef
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2287
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2435>
(cherry picked from commit a2ebd10f049d888e451938e23a035ed97e0c8eff)

898675e... by Jonas Ådahl

kms/crtc: Always read the gamma state

It doesn't depend on whether the CRTC is active or not, so always read
it. This is also useful to know whether a CRTC supports gamma, before it
is being turned on, without relying on the existance of properties.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2435>
(cherry picked from commit 9001fa9717c88f8d429fbfafb236f8b8cf92dba2)

1b37314... by Jonas Ådahl

xwayland: Remove stray newline

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2364>

16b7dce... by Jonas Ådahl

x11/input-selection-stream: Handle Xwayland going away

Xwayland can disappear at any time, for example during a new_async() or
read_async() call. When we eventually finalize the stream, the X11
display it was created for is gone, thus can't clean up the X11
resources. Handle this by making the MetaX11Display pointer a weak
pointer, and ignore cleaning up if it disappeared. This is fine since
the X11 server it created those resources one is gone already.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2364>

d92385e... by Jonas Ådahl

selection: Return an error if trying to transfer from NULL source

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2364>