diff --git a/anda/desktops/compiz9/compiz9.spec b/anda/desktops/compiz9/compiz9.spec
index 39ec3425a6..6892e32632 100644
--- a/anda/desktops/compiz9/compiz9.spec
+++ b/anda/desktops/compiz9/compiz9.spec
@@ -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
diff --git a/anda/desktops/compiz9/focus-prevention-disable.patch b/anda/desktops/compiz9/focus-prevention-disable.patch
new file mode 100644
index 0000000000..df2fcef106
--- /dev/null
+++ b/anda/desktops/compiz9/focus-prevention-disable.patch
@@ -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
+ 0
+ 4
+- 1
++ 0
+
+ 0
+ <_name>Off
diff --git a/anda/desktops/compiz9/gtk-extents.patch b/anda/desktops/compiz9/gtk-extents.patch
new file mode 100644
index 0000000000..5c8ec1ec20
--- /dev/null
+++ b/anda/desktops/compiz9/gtk-extents.patch
@@ -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);
+