1 |
commit: 15fc092d167cf65a470c0561de771b233351f694 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 30 20:09:25 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 30 20:10:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15fc092d |
7 |
|
8 |
x11-wm/mutter: Fix non-wayland build (#667244 by Denis Descheneaux) |
9 |
|
10 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
12 |
|
13 |
x11-wm/mutter/files/3.26.2-non-wayland-build.patch | 33 ++++++++++++++++++++++ |
14 |
x11-wm/mutter/mutter-3.26.2-r1.ebuild | 3 ++ |
15 |
2 files changed, 36 insertions(+) |
16 |
|
17 |
diff --git a/x11-wm/mutter/files/3.26.2-non-wayland-build.patch b/x11-wm/mutter/files/3.26.2-non-wayland-build.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..a2a8d356e07 |
20 |
--- /dev/null |
21 |
+++ b/x11-wm/mutter/files/3.26.2-non-wayland-build.patch |
22 |
@@ -0,0 +1,33 @@ |
23 |
+From 6cc48d8cbbf11fa82ec78cac0b29d52f05eabb60 Mon Sep 17 00:00:00 2001 |
24 |
+From: Ting-Wei Lan <lantw@×××××××××.org> |
25 |
+Date: Sun, 24 Dec 2017 17:55:14 +0800 |
26 |
+Subject: [PATCH] build: Fix non-wayland builds |
27 |
+ |
28 |
+meta_dnd_wayland_handle_end_modal is not available on non-wayland build. |
29 |
+ |
30 |
+https://bugzilla.gnome.org/show_bug.cgi?id=791916 |
31 |
+--- |
32 |
+ src/compositor/compositor.c | 2 ++ |
33 |
+ 1 file changed, 2 insertions(+) |
34 |
+ |
35 |
+diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c |
36 |
+index 51d22bc17..aa49347c9 100644 |
37 |
+--- a/src/compositor/compositor.c |
38 |
++++ b/src/compositor/compositor.c |
39 |
+@@ -419,11 +419,13 @@ meta_end_modal_for_plugin (MetaCompositor *compositor, |
40 |
+ meta_backend_ungrab_device (backend, META_VIRTUAL_CORE_POINTER_ID, timestamp); |
41 |
+ meta_backend_ungrab_device (backend, META_VIRTUAL_CORE_KEYBOARD_ID, timestamp); |
42 |
+ |
43 |
++#ifdef HAVE_WAYLAND |
44 |
+ if (meta_is_wayland_compositor ()) |
45 |
+ { |
46 |
+ meta_dnd_wayland_handle_end_modal (compositor); |
47 |
+ meta_display_sync_wayland_input_focus (display); |
48 |
+ } |
49 |
++#endif |
50 |
+ } |
51 |
+ |
52 |
+ static void |
53 |
+-- |
54 |
+2.18.0 |
55 |
+ |
56 |
|
57 |
diff --git a/x11-wm/mutter/mutter-3.26.2-r1.ebuild b/x11-wm/mutter/mutter-3.26.2-r1.ebuild |
58 |
index 71a77b24829..209182f780b 100644 |
59 |
--- a/x11-wm/mutter/mutter-3.26.2-r1.ebuild |
60 |
+++ b/x11-wm/mutter/mutter-3.26.2-r1.ebuild |
61 |
@@ -81,6 +81,9 @@ DEPEND="${RDEPEND} |
62 |
PATCHES=( |
63 |
# Lots of patches from gnome-3-26 branch on top of 3.26.2 |
64 |
"${WORKDIR}"/patches/ |
65 |
+ |
66 |
+ # Fix non-wayland builds, bug #667244 |
67 |
+ "${FILESDIR}"/${PV}-non-wayland-build.patch |
68 |
) |
69 |
|
70 |
src_prepare() { |