Merge ~3v1n0/ubuntu/+source/mutter:ubuntu/eoan into ~ubuntu-desktop/ubuntu/+source/mutter:ubuntu/eoan

Proposed by Marco Trevisan (Treviño)
Status: Merged
Merged at revision: 31cfc36b66d64c48182e6dc0c974e1bfab0b510b
Proposed branch: ~3v1n0/ubuntu/+source/mutter:ubuntu/eoan
Merge into: ~ubuntu-desktop/ubuntu/+source/mutter:ubuntu/eoan
Diff against target: 198 lines (+128/-4)
7 files modified
NEWS (+8/-0)
clutter/clutter/clutter-stage.c (+2/-2)
debian/changelog (+44/-0)
debian/patches/EGL-Include-EGL-eglmesaext.h.patch (+67/-0)
debian/patches/series (+1/-0)
meson.build (+1/-1)
src/backends/meta-screen-cast-window-stream.c (+5/-1)
Reviewer Review Type Date Requested Status
Ubuntu Desktop Pending
Review via email: mp+377259@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/NEWS b/NEWS
2index da99622..38e94df 100644
3--- a/NEWS
4+++ b/NEWS
5@@ -1,3 +1,11 @@
6+3.34.3
7+======
8+* Fix window recording on HiDPI [Pascal; !976]
9+* Fix top-left pixel being insensitive to clicks [Sebastian; #893]
10+
11+Contributors:
12+ Sebastian Keller, Pascal Nowack
13+
14 3.34.2
15 ======
16 * Fix immediate screen blank after releasing inhibitor [Tim; #573]
17diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
18index c4b88b3..06eb9dd 100644
19--- a/clutter/clutter/clutter-stage.c
20+++ b/clutter/clutter/clutter-stage.c
21@@ -486,9 +486,9 @@ is_inside_axis_aligned_rectangle (const ClutterPoint *point,
22 const ClutterPoint *vertices)
23 {
24 float min_x = FLT_MAX;
25- float max_x = FLT_MIN;
26+ float max_x = -FLT_MAX;
27 float min_y = FLT_MAX;
28- float max_y = FLT_MIN;
29+ float max_y = -FLT_MAX;
30 int i;
31
32 for (i = 0; i < 3; i++)
33diff --git a/debian/changelog b/debian/changelog
34index c5753d3..7ae3180 100644
35--- a/debian/changelog
36+++ b/debian/changelog
37@@ -1,3 +1,47 @@
38+mutter (3.34.3-1ubuntu1~19.10.1) UNRELEASED; urgency=medium
39+
40+ * Backport to eoan (LP: #1858683)
41+
42+ -- Marco Trevisan (Treviño) <marco@ubuntu.com> Tue, 07 Jan 2020 20:12:12 +0100
43+
44+mutter (3.34.3-1ubuntu1) focal; urgency=medium
45+
46+ * Merge with debian. Remaining changes:
47+ + debian/control:
48+ - Update VCS flags to point to launchpad
49+ + debian/gbp.conf: update branch to point to ubuntu/master
50+ + debian/patches/x11-Add-support-for-fractional-scaling-using-Randr.patch:
51+ - X11: Add support for fractional scaling using Randr
52+
53+ -- Iain Lane <iain.lane@canonical.com> Mon, 06 Jan 2020 17:56:09 +0000
54+
55+mutter (3.34.3-1) unstable; urgency=medium
56+
57+ * New upstream release
58+ + Fix window recording on HiDPI
59+ + Fix top-left pixel being insensitive to clicks (LP: #1849135)
60+
61+ -- Iain Lane <laney@debian.org> Mon, 06 Jan 2020 13:39:48 +0000
62+
63+mutter (3.34.2-2ubuntu1) focal; urgency=medium
64+
65+ * Merge with debian. Remaining changes:
66+ + debian/control:
67+ - Update VCS flags to point to launchpad
68+ + debian/gbp.conf: update branch to point to ubuntu/master
69+ + debian/patches/x11-Add-support-for-fractional-scaling-using-Randr.patch:
70+ - X11: Add support for fractional scaling using Randr
71+
72+ -- Iain Lane <iain.lane@canonical.com> Sun, 22 Dec 2019 17:24:36 +0000
73+
74+mutter (3.34.2-2) unstable; urgency=medium
75+
76+ * d/p/EGL-Include-EGL-eglmesaext.h.patch: Cherry pick from master. This
77+ fixes the generated EGL includes for the move of exlext.h from mesa to
78+ libglvnd, which has just happened in Debian.
79+
80+ -- Iain Lane <laney@debian.org> Sun, 22 Dec 2019 15:42:09 +0000
81+
82 mutter (3.34.2-1ubuntu1~19.10.1) eoan; urgency=medium
83
84 * Backport to eoan.
85diff --git a/debian/patches/EGL-Include-EGL-eglmesaext.h.patch b/debian/patches/EGL-Include-EGL-eglmesaext.h.patch
86new file mode 100644
87index 0000000..4efad61
88--- /dev/null
89+++ b/debian/patches/EGL-Include-EGL-eglmesaext.h.patch
90@@ -0,0 +1,67 @@
91+From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
92+Date: Sun, 20 Oct 2019 12:04:31 +0200
93+Subject: EGL: Include EGL/eglmesaext.h
94+
95+The eglext.h shipped by libglvnd does not include the Mesa extensions,
96+unlike the header shipped in Mesa.
97+
98+Fixes https://gitlab.gnome.org/GNOME/mutter/issues/876
99+
100+Origin: upstream, commit:a444a4c5f58ea516ad3cd9d6ddc0056c3ca9bc90
101+Applied-Upstream: 3.35.2
102+---
103+ cogl/cogl/meson.build | 2 +-
104+ src/backends/meta-egl-ext.h | 1 +
105+ src/backends/meta-egl.c | 1 +
106+ src/backends/meta-egl.h | 1 +
107+ 4 files changed, 4 insertions(+), 1 deletion(-)
108+
109+diff --git a/cogl/cogl/meson.build b/cogl/cogl/meson.build
110+index 1057ef9..9a64294 100644
111+--- a/cogl/cogl/meson.build
112++++ b/cogl/cogl/meson.build
113+@@ -48,7 +48,7 @@ cogl_gl_header_h = configure_file(
114+ built_headers += [cogl_gl_header_h]
115+
116+ if have_egl
117+- cogl_egl_includes_string = '#include <EGL/egl.h>\n#include <EGL/eglext.h>'
118++ cogl_egl_includes_string = '#include <EGL/egl.h>\n#include <EGL/eglext.h>\n#include <EGL/eglmesaext.h>'
119+ else
120+ cogl_egl_includes_string = ''
121+ endif
122+diff --git a/src/backends/meta-egl-ext.h b/src/backends/meta-egl-ext.h
123+index 8705e7d..db0b74f 100644
124+--- a/src/backends/meta-egl-ext.h
125++++ b/src/backends/meta-egl-ext.h
126+@@ -29,6 +29,7 @@
127+
128+ #include <EGL/egl.h>
129+ #include <EGL/eglext.h>
130++#include <EGL/eglmesaext.h>
131+
132+ /*
133+ * This is a little different to the tests shipped with EGL implementations,
134+diff --git a/src/backends/meta-egl.c b/src/backends/meta-egl.c
135+index 6554be9..fdeff4f 100644
136+--- a/src/backends/meta-egl.c
137++++ b/src/backends/meta-egl.c
138+@@ -27,6 +27,7 @@
139+
140+ #include <EGL/egl.h>
141+ #include <EGL/eglext.h>
142++#include <EGL/eglmesaext.h>
143+ #include <gio/gio.h>
144+ #include <glib.h>
145+ #include <glib-object.h>
146+diff --git a/src/backends/meta-egl.h b/src/backends/meta-egl.h
147+index f2a8164..4591e7d 100644
148+--- a/src/backends/meta-egl.h
149++++ b/src/backends/meta-egl.h
150+@@ -28,6 +28,7 @@
151+
152+ #include <EGL/egl.h>
153+ #include <EGL/eglext.h>
154++#include <EGL/eglmesaext.h>
155+ #include <glib-object.h>
156+
157+ #define META_EGL_ERROR meta_egl_error_quark ()
158diff --git a/debian/patches/series b/debian/patches/series
159index 8590a4e..a3ecc5d 100644
160--- a/debian/patches/series
161+++ b/debian/patches/series
162@@ -1,3 +1,4 @@
163+EGL-Include-EGL-eglmesaext.h.patch
164 theme-use-gtk_render_icon_suface-to-paint-button-icon.patch
165 theme-load-icons-as-Gtk-does-with-fallback-and-RTL-suppor.patch
166 meson-add-back-default_driver-option.patch
167diff --git a/meson.build b/meson.build
168index efea15c..036cc8d 100644
169--- a/meson.build
170+++ b/meson.build
171@@ -1,5 +1,5 @@
172 project('mutter', 'c',
173- version: '3.34.2',
174+ version: '3.34.3',
175 meson_version: '>= 0.50.0',
176 license: 'GPLv2+'
177 )
178diff --git a/src/backends/meta-screen-cast-window-stream.c b/src/backends/meta-screen-cast-window-stream.c
179index 50d1806..b9a732c 100644
180--- a/src/backends/meta-screen-cast-window-stream.c
181+++ b/src/backends/meta-screen-cast-window-stream.c
182@@ -226,11 +226,15 @@ meta_screen_cast_window_stream_initable_init (GInitable *initable,
183 G_CALLBACK (on_window_unmanaged),
184 window_stream);
185
186+ if (meta_is_stage_views_scaled ())
187+ scale = (int) ceilf (meta_logical_monitor_get_scale (logical_monitor));
188+ else
189+ scale = 1;
190+
191 /* We cannot set the stream size to the exact size of the window, because
192 * windows can be resized, whereas streams cannot.
193 * So we set a size equals to the size of the logical monitor for the window.
194 */
195- scale = (int) ceil (meta_logical_monitor_get_scale (logical_monitor));
196 window_stream->logical_width = logical_monitor->rect.width;
197 window_stream->logical_height = logical_monitor->rect.height;
198 window_stream->stream_width = logical_monitor->rect.width * scale;

Subscribers

People subscribed via source and target branches