From 5db6bd9bf22b51ce06d7632930f6d420bcc526cc Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Mon, 6 Mar 2023 12:40:33 -0600 Subject: [PATCH] Add patch to center initial setup windows --- ...-center-initial-setup-fedora-welcome.patch | 27 +++++++++++++++++++ mutter.spec | 4 ++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0001-place-Always-center-initial-setup-fedora-welcome.patch diff --git a/0001-place-Always-center-initial-setup-fedora-welcome.patch b/0001-place-Always-center-initial-setup-fedora-welcome.patch new file mode 100644 index 0000000..479b6b9 --- /dev/null +++ b/0001-place-Always-center-initial-setup-fedora-welcome.patch @@ -0,0 +1,27 @@ +From cc057095ba4d4a9500163ec646a8bf134e9dd04a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20M=C3=BCllner?= +Date: Fri, 2 Dec 2022 22:49:41 +0100 +Subject: [PATCH] place: Always center initial-setup/fedora-welcome + +--- + src/core/place.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/core/place.c b/src/core/place.c +index 1075fe20d..35794ea6e 100644 +--- a/src/core/place.c ++++ b/src/core/place.c +@@ -320,6 +320,10 @@ window_place_centered (MetaWindow *window) + + type = window->type; + ++ if (g_str_equal (meta_window_get_wm_class (window), "org.gnome.InitalSetup") || ++ g_str_equal (meta_window_get_wm_class (window), "fedora-welcome")) ++ return TRUE; ++ + return (type == META_WINDOW_DIALOG || + type == META_WINDOW_MODAL_DIALOG || + type == META_WINDOW_SPLASHSCREEN || +-- +2.38.1 + diff --git a/mutter.spec b/mutter.spec index 8a7e56a..16f1f28 100644 --- a/mutter.spec +++ b/mutter.spec @@ -13,7 +13,7 @@ Name: mutter Version: 44~rc -Release: 1%{?dist} +Release: 2%{?dist} Summary: Window and compositing manager based on Clutter License: GPLv2+ @@ -29,6 +29,8 @@ Patch1: 0001-Revert-build-Do-not-provide-built-sources-as-libmutt.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1936991 Patch2: mutter-42.alpha-disable-tegra.patch +# https://pagure.io/fedora-workstation/issue/79 +Patch3: 0001-place-Always-center-initial-setup-fedora-welcome.patch BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.41.0 BuildRequires: pkgconfig(sm)