mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
Fix compiz9 on software rendering (#262)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
%define _ubuntu_rel 22.10.20220822-0ubuntu1
|
||||
%global _hardened_build 0
|
||||
|
||||
Name: compiz9
|
||||
Version: 0.9.14.2
|
||||
@@ -9,6 +10,8 @@ License: GPLv2+ AND LGPLv2+ AND MIT
|
||||
URL: https://launchpad.net/compiz
|
||||
Source0: http://archive.ubuntu.com/ubuntu/pool/universe/c/compiz/compiz_%{version}+%{_ubuntu_rel}.tar.xz
|
||||
Patch0: https://raw.githubusercontent.com/cat-master21/unityDE-specs/main/patches/compiz-cmake-install-path.patch
|
||||
Patch1: gtk-extents.patch
|
||||
Patch2: focus-prevention-disable.patch
|
||||
|
||||
Conflicts: compiz
|
||||
BuildRequires: libX11-devel
|
||||
@@ -77,7 +80,7 @@ Compiz 9 branch, which is newer then what Fedora packages and required by Unity
|
||||
%build
|
||||
# The driver blacklist hack is obselete
|
||||
sed -i 's/(nouveau|Intel).*Mesa 8.0//' plugins/opengl/opengl.xml.in
|
||||
%cmake -DCOMPIZ_DISABLE_GS_SCHEMAS_INSTALL=OFF -DBUILD_GTK=ON -DBUILD_METACITY=ON -DCOMPIZ_BUILD_TESTING=OFF -DBUILD_GLES=ON -DCOMPIZ_PACKAGING_ENABLED=TRUE -DBUILD_XORG_GTEST=OFF -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCOMPIZ_WERROR=OFF
|
||||
%cmake -DCOMPIZ_DISABLE_GS_SCHEMAS_INSTALL=OFF -DBUILD_GTK=ON -DBUILD_METACITY=ON -DCOMPIZ_BUILD_TESTING=OFF -DBUILD_GLES=OFF -DCOMPIZ_PACKAGING_ENABLED=TRUE -DBUILD_XORG_GTEST=OFF -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCOMPIZ_WERROR=OFF
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -Naur original/metadata/core.xml.in modified/metadata/core.xml.in
|
||||
--- original/metadata/core.xml.in 2013-07-23 20:58:03.000000000 +0100
|
||||
+++ modified/metadata/core.xml.in 2014-06-11 09:06:53.839302487 +0100
|
||||
@@ -114,7 +114,7 @@
|
||||
<_long>Level of focus stealing prevention</_long>
|
||||
<min>0</min>
|
||||
<max>4</max>
|
||||
- <default>1</default>
|
||||
+ <default>0</default>
|
||||
<desc>
|
||||
<value>0</value>
|
||||
<_name>Off</_name>
|
||||
@@ -0,0 +1,13 @@
|
||||
# Diff from https://code.launchpad.net/~albertsmuktupavels/compiz/add-gtk-frame-extents-to-net-supported/+merge/257303
|
||||
=== modified file 'src/screen.cpp'
|
||||
--- a/src/screen.cpp 2014-12-02 19:37:10 +0000
|
||||
+++ b/src/screen.cpp 2015-04-23 20:41:24 +0000
|
||||
@@ -2362,6 +2362,7 @@
|
||||
|
||||
atoms.push_back (Atoms::wmUserTime);
|
||||
atoms.push_back (Atoms::frameExtents);
|
||||
+ atoms.push_back (Atoms::frameGtkExtents);
|
||||
atoms.push_back (Atoms::frameWindow);
|
||||
|
||||
atoms.push_back (Atoms::winState);
|
||||
|
||||
Reference in New Issue
Block a user