build(patch): Enable in xpresent in compositor

This commit is contained in:
Artem Polishchuk 2021-04-13 19:22:06 +03:00
parent 44078e3ed8
commit ca3d7ed363
2 changed files with 49 additions and 1 deletions

View File

@ -0,0 +1,40 @@
From 6f3efe9ff6e7f4442b7beb244481c2c8f46e8d68 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= <alberts.muktupavels@gmail.com>
Date: Tue, 13 Apr 2021 18:39:36 +0300
Subject: [PATCH] compositor: enable xpresent
https://gitlab.gnome.org/GNOME/metacity/-/issues/13
---
data/schemas/org.gnome.metacity.gschema.xml | 2 +-
src/include/meta-compositor.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/data/schemas/org.gnome.metacity.gschema.xml b/data/schemas/org.gnome.metacity.gschema.xml
index c55d9727..79cb6dcd 100644
--- a/data/schemas/org.gnome.metacity.gschema.xml
+++ b/data/schemas/org.gnome.metacity.gschema.xml
@@ -33,7 +33,7 @@
<summary>Compositor</summary>
<description>
Compositor that Metacity will use for compositing. Possible values
- are “none” and “xrender”.
+ are “none”, “xrender” and “xpresent”.
</description>
</key>
diff --git a/src/include/meta-compositor.h b/src/include/meta-compositor.h
index 9e0778a6..1158d343 100644
--- a/src/include/meta-compositor.h
+++ b/src/include/meta-compositor.h
@@ -35,7 +35,7 @@ typedef enum
{
META_COMPOSITOR_TYPE_NONE,
META_COMPOSITOR_TYPE_XRENDER,
- META_COMPOSITOR_TYPE_XPRESENT, /*< skip >*/
+ META_COMPOSITOR_TYPE_XPRESENT,
META_COMPOSITOR_TYPE_EXTERNAL, /*< skip >*/
META_COMPOSITOR_TYPE_VULKAN /*< skip >*/
} MetaCompositorType;
--
GitLab

View File

@ -1,10 +1,15 @@
Name: metacity
Version: 3.40.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Unobtrusive window manager
URL: https://wiki.gnome.org/Projects/Metacity
Source0: https://download.gnome.org/sources/metacity/3.40/metacity-%{version}.tar.xz
# compositor: enable xpresent
# * https://gitlab.gnome.org/GNOME/metacity/-/commit/6f3efe9ff6e7f4442b7beb244481c2c8f46e8d68
# * https://gitlab.gnome.org/GNOME/metacity/-/issues/13#note_1081820
Patch0: https://gitlab.gnome.org/GNOME/metacity/-/commit/6f3efe9ff6e7f4442b7beb244481c2c8f46e8d68.patch#/compositor-enable-xpresent.patch
License: GPLv2+
BuildRequires: make
@ -116,6 +121,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_mandir}/man1/metacity-theme-viewer.1.gz
%changelog
* Tue Apr 13 2021 Artem Polishchuk <ego.cordatus@gmail.com> - 3.40.0-2
- build(patch): Enable in xpresent in compositor
* Fri Apr 09 2021 Artem Polishchuk <ego.cordatus@gmail.com> - 3.40.0-1
- Update to 3.40.0