Sanity check input on workspace activation API
Related: RHEL-68825
This commit is contained in:
parent
b8d17ac25e
commit
42b684ecd5
31
0001-workspace-Sanity-check-input-to-activate.patch
Normal file
31
0001-workspace-Sanity-check-input-to-activate.patch
Normal file
@ -0,0 +1,31 @@
|
||||
From 73a66065cacfe9bb953592562cb7946c1c2802e3 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
|
||||
Date: Wed, 23 Nov 2022 10:26:55 +0100
|
||||
Subject: [PATCH] workspace: Sanity check input to activate*()
|
||||
|
||||
The passed argument should be a workspace, and it should not have been
|
||||
removed.
|
||||
|
||||
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2707>
|
||||
(cherry picked from commit e709853ad3d043ee2ed72e75fbda0c225e30eda7)
|
||||
---
|
||||
src/core/workspace.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/core/workspace.c b/src/core/workspace.c
|
||||
index 321d3efb0a..9e0cf93d65 100644
|
||||
--- a/src/core/workspace.c
|
||||
+++ b/src/core/workspace.c
|
||||
@@ -537,6 +537,9 @@ meta_workspace_activate_with_focus (MetaWorkspace *workspace,
|
||||
gint num_workspaces, current_space, new_space;
|
||||
MetaMotionDirection direction;
|
||||
|
||||
+ g_return_if_fail (META_IS_WORKSPACE (workspace));
|
||||
+ g_return_if_fail (meta_workspace_index (workspace) != -1);
|
||||
+
|
||||
meta_verbose ("Activating workspace %d",
|
||||
meta_workspace_index (workspace));
|
||||
|
||||
--
|
||||
2.47.3
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
|
||||
Name: mutter
|
||||
Version: 40.9
|
||||
Release: 31%{?dist}
|
||||
Release: 32%{?dist}
|
||||
Summary: Window and compositing manager based on Clutter
|
||||
|
||||
License: GPLv2+
|
||||
@ -193,6 +193,9 @@ Patch92: 0018-wayland-dma-buf-Don-t-warn-if-there-was-no-render-no.patch
|
||||
# RHEL-70872
|
||||
Patch533: 0001-x11-iconcache-Turn-icons-from-WM_HINTS-pixmaps-to-ca.patch
|
||||
|
||||
# RHEL-68825
|
||||
Patch534: 0001-workspace-Sanity-check-input-to-activate.patch
|
||||
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: pango-devel
|
||||
BuildRequires: startup-notification-devel
|
||||
@ -340,6 +343,10 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/mutter-%{mutter_api_version}/tests
|
||||
|
||||
%changelog
|
||||
* Thu Nov 27 2025 Jonas Ådahl <jadahl@redhat.com> - 40.9-32
|
||||
- Sanity check input on workspace activation API
|
||||
Related: RHEL-68825
|
||||
|
||||
* Thu Nov 20 2025 Olivier Fourdan <ofourdan@redhat.com> - 40.9-31
|
||||
- Backport linux-dmabuf v4 support to restore hardware acceleration
|
||||
in Xwayland 24.1 with Mesa 25.2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user