SHA256
1
0
forked from pool/mutter

Accepting request 945633 from GNOME:Next

- Update to version 41.3:
  + Check keyboard serials for activation
  + Fix mixed up refresh rates in multi-monitor setups
  + Allow disabling HW cursors
  + Improve damage handling
  + Consider xrandr flags for advertised modes
  + Ensure constraints after client resize
  + window-group: Disable culling when rendinging clone to
    offscreen buffer
  + Fix workspace switch animation in default plugin
  + Fix unfullscreening of window that were mapped fullscreen
  + Fix DMA-BUF screencasts with unredirected fullscreen windows
  + Fix orientation changes on devices with 90°
  + Fixed crashes
  + Plugged leaks
  + Misc. bug fixes and cleanups.
- Drop patches fixed upstream:
  + mutter-allow-disable-hardware-cursors.patch
  + mutter-initialize-saved_rect_fullscreen.patch
- Renumber patches yet again.

OBS-URL: https://build.opensuse.org/request/show/945633
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/mutter?expand=0&rev=400
This commit is contained in:
Bjørn Lie 2022-01-11 18:17:50 +00:00 committed by Git OBS Bridge
parent 5243171e91
commit 390fd9e67f
9 changed files with 33 additions and 95 deletions

View File

@ -3,7 +3,7 @@
<service name="obs_scm" mode="disabled"> <service name="obs_scm" mode="disabled">
<param name="scm">git</param> <param name="scm">git</param>
<param name="url">https://gitlab.gnome.org/GNOME/mutter.git</param> <param name="url">https://gitlab.gnome.org/GNOME/mutter.git</param>
<param name="revision">refs/tags/41.2</param> <param name="revision">refs/tags/41.3</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">(.*)\+0</param> <param name="versionrewrite-pattern">(.*)\+0</param>
<param name="versionrewrite-replacement">\1</param> <param name="versionrewrite-replacement">\1</param>

View File

@ -1,4 +0,0 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://gitlab.gnome.org/GNOME/mutter.git</param>
<param name="changesrevision">62609d7a6a7e9cfc34d4eebf2e1a7a29151810ae</param></service></servicedata>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:122e8ffad1d68643104bdc915f3f3c7ee4883254b11981c550de83671bf4a74b
size 24791565

3
mutter-41.3.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:993ed29a9c95637e3fb9793dad3f7ef0451e2570a7420f9a2f5bfe9e1aa8c4f5
size 24804365

View File

@ -1,32 +0,0 @@
From 62f1e7c12e87da4529df5441edf7a8303e8a6e9e Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <ofourdan@redhat.com>
Date: Fri, 10 Dec 2021 10:57:29 +0100
Subject: [PATCH] cursor-renderer/native: Add a means to disable HW cursors
When dealing with a faulty hardware or bugs in the driver, it might be
interesting to force the use of software cursors for debugging purposes.
Add a debug environment variable MUTTER_DEBUG_DISABLE_HW_CURSORS to
disable hardware cursors and force using software cursors.
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2046
---
src/backends/native/meta-cursor-renderer-native.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Index: mutter-41.2/src/backends/native/meta-cursor-renderer-native.c
===================================================================
--- mutter-41.2.orig/src/backends/native/meta-cursor-renderer-native.c
+++ mutter-41.2/src/backends/native/meta-cursor-renderer-native.c
@@ -1864,7 +1864,10 @@ meta_cursor_renderer_native_new (MetaBac
priv->backend = backend;
- init_hw_cursor_support (cursor_renderer_native);
+ if (g_strcmp0 (getenv ("MUTTER_DEBUG_DISABLE_HW_CURSORS"), "1"))
+ init_hw_cursor_support (cursor_renderer_native);
+ else
+ g_message ("Disabling hardware cursors because MUTTER_DEBUG_DISABLE_HW_CURSORS is set");
return cursor_renderer_native;
}

View File

@ -1,43 +0,0 @@
From 157555cf0e7aaef32892c5576e81ba2154d14a0d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
Date: Fri, 7 Jan 2022 16:30:19 +0100
Subject: [PATCH] window: Initialize saved_rect_fullscreen too
We save the window rect before going fullscreen to a dedicated variable,
so we can go back to the correct dimension. We also have a dedicated
variable for returning from other window states, e.g. maximized, and
this one we initialized when creating the MetaWindow. This meant that we
could always rely on this being up to date on X11 windows that were
mapped maximized or fullscreen.
What the commit that introduced the saved rect dedicated for going
unfullscreen missed was to initialize the new saved rectangle too when
creating the MetaWindow. This resulted in windows mapped as fullscreen
often ending up misbehaving when unfullscreening, as mutter would tell
them to unfullscreen to 0x0.
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1786
Fixes: a51ad8f932cb55bdd8a62fc5d8d10af7fc62b0a0
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2210>
(cherry picked from commit 13f35ab0640631566f52c80583b09fe4e3dc3685)
---
src/core/window.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/core/window.c b/src/core/window.c
index 9b3f54df9e..6623951613 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -1054,6 +1054,7 @@ _meta_window_shared_new (MetaDisplay *display,
/* And this is our unmaximized size */
window->saved_rect = window->rect;
+ window->saved_rect_fullscreen = window->rect;
window->unconstrained_rect = window->rect;
window->depth = attrs->depth;
--
GitLab

View File

@ -1,3 +1,27 @@
-------------------------------------------------------------------
Tue Jan 11 17:28:52 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 41.3:
+ Check keyboard serials for activation
+ Fix mixed up refresh rates in multi-monitor setups
+ Allow disabling HW cursors
+ Improve damage handling
+ Consider xrandr flags for advertised modes
+ Ensure constraints after client resize
+ window-group: Disable culling when rendinging clone to
offscreen buffer
+ Fix workspace switch animation in default plugin
+ Fix unfullscreening of window that were mapped fullscreen
+ Fix DMA-BUF screencasts with unredirected fullscreen windows
+ Fix orientation changes on devices with 90°
+ Fixed crashes
+ Plugged leaks
+ Misc. bug fixes and cleanups.
- Drop patches fixed upstream:
+ mutter-allow-disable-hardware-cursors.patch
+ mutter-initialize-saved_rect_fullscreen.patch
- Renumber patches yet again.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 10 07:14:19 UTC 2022 - Alynx Zhou <alynx.zhou@suse.com> Mon Jan 10 07:14:19 UTC 2022 - Alynx Zhou <alynx.zhou@suse.com>

View File

@ -1,5 +1,4 @@
name: mutter name: mutter
version: 41.2 version: 41.3
mtime: 1639332937 mtime: 1641851077
commit: 664ac09eecfd365b5258f53d2c9e6c8410a37919 commit: f51ad2911419ee2ab88b5548581227a57d0fd987

View File

@ -23,7 +23,7 @@
%define api_minor 0 %define api_minor 0
%define libmutter libmutter-%{api_major}-%{api_minor} %define libmutter libmutter-%{api_major}-%{api_minor}
Name: mutter Name: mutter
Version: 41.2 Version: 41.3
Release: 0 Release: 0
Summary: Window and compositing manager based on Clutter Summary: Window and compositing manager based on Clutter
License: GPL-2.0-or-later License: GPL-2.0-or-later
@ -37,12 +37,8 @@ Source0: %{name}-%{version}.tar.xz
Patch0: mutter-Lower-HIDPI_LIMIT-to-144.patch Patch0: mutter-Lower-HIDPI_LIMIT-to-144.patch
# PATCH-FIX-UPSTREAM mutter-disable-cvt-s390x.patch bsc#1158128 fcrozat@suse.com -- Do not search for cvt on s390x, it doesn't exist there # PATCH-FIX-UPSTREAM mutter-disable-cvt-s390x.patch bsc#1158128 fcrozat@suse.com -- Do not search for cvt on s390x, it doesn't exist there
Patch1: mutter-disable-cvt-s390x.patch Patch1: mutter-disable-cvt-s390x.patch
# PATCH-FIX-UPSTREAM mutter-allow-disable-hardware-cursors.patch glgo#GNOME/mutter!2150 alynx.zhou@suse.com -- Add a debug environment variable to disable hardware cursors.
Patch2: mutter-allow-disable-hardware-cursors.patch
# PATCH-FIX-OPENSUSE mutter-window-actor-Special-case-shaped-Java-windows.patch -- window-actor: Special-case shaped Java windows # PATCH-FIX-OPENSUSE mutter-window-actor-Special-case-shaped-Java-windows.patch -- window-actor: Special-case shaped Java windows
Patch3: mutter-window-actor-Special-case-shaped-Java-windows.patch Patch2: mutter-window-actor-Special-case-shaped-Java-windows.patch
# PATCH-FIX-UPSTREAM mutter-initialize-saved_rect_fullscreen.patch glgo#GNOME/mutter!2210, bsc#1185444 alynx.zhou@suse.com -- Initialize saved_rect_fullscreen to fix fullscreen for some program like Stellarium.
Patch4: mutter-initialize-saved_rect_fullscreen.patch
## SLE-only patches start at 1000 ## SLE-only patches start at 1000
# PATCH-FEATURE-SLE mutter-SLE-bell.patch FATE#316042 bnc#889218 idonmez@suse.com -- make audible bell work out of the box. # PATCH-FEATURE-SLE mutter-SLE-bell.patch FATE#316042 bnc#889218 idonmez@suse.com -- make audible bell work out of the box.
@ -150,8 +146,6 @@ applications that want to make use of the mutter library.
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1
%patch4 -p1
# SLE-only patches and translations. # SLE-only patches and translations.
%if 0%{?sle_version} %if 0%{?sle_version}