Merge lp:~muktupavels/metacity/lp1403583 into lp:ubuntu/vivid/metacity

Proposed by Alberts Muktupāvels
Status: Merged
Merged at revision: 141
Proposed branch: lp:~muktupavels/metacity/lp1403583
Merge into: lp:ubuntu/vivid/metacity
Diff against target: 74 lines (+54/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/compositor-don-t-use-invalid-back_pixmap.patch (+46/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~muktupavels/metacity/lp1403583
Reviewer Review Type Date Requested Status
Dmitry Shachnev Approve
Review via email: mp+250136@code.launchpad.net

Commit message

Fix notify-osd notifications. (LP: #1403583)

Description of the change

Fix notify-osd notifications. (LP: #1403583)

To post a comment you must log in.
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

YES, this patch fixes the issue. Thanks!

review: Approve
Revision history for this message
Alberts Muktupāvels (muktupavels) wrote :

Are you going to upload this to vivid? Or you are waiting for something?

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Just have not yet had time for it. Will try to upload this week.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Uploaded, sorry for the delay.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2015-01-31 15:59:33 +0000
+++ debian/changelog 2015-02-18 14:24:40 +0000
@@ -1,3 +1,10 @@
1metacity (1:3.14.3-1ubuntu5) UNRELEASED; urgency=medium
2
3 * debian/patches/compositor-don-t-use-invalid-back_pixmap.patch:
4 Don't use invalid back_pixmap. (LP: #1403583)
5
6 -- Alberts Muktupāvels <alberts.muktupavels@gmail.com> Wed, 18 Feb 2015 16:11:17 +0200
7
1metacity (1:3.14.3-1ubuntu4) vivid; urgency=medium8metacity (1:3.14.3-1ubuntu4) vivid; urgency=medium
29
3 * Backport upstream patch to use correct name for missing icon,10 * Backport upstream patch to use correct name for missing icon,
411
=== added file 'debian/patches/compositor-don-t-use-invalid-back_pixmap.patch'
--- debian/patches/compositor-don-t-use-invalid-back_pixmap.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/compositor-don-t-use-invalid-back_pixmap.patch 2015-02-18 14:24:40 +0000
@@ -0,0 +1,46 @@
1Description: compositor: don't use invalid back_pixmap
2Author: Alberts Muktupāvels <alberts.muktupavels@gmail.com>
3Bug: https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/1403583
4
5--- a/src/compositor/compositor-xrender.c
6+++ b/src/compositor/compositor-xrender.c
7@@ -1061,17 +1061,22 @@
8 XRenderPictureAttributes pa;
9 XRenderPictFormat *format;
10 Drawable draw;
11+ int error_code;
12
13 draw = cw->id;
14
15- meta_error_trap_push (display);
16-
17 #ifdef HAVE_NAME_WINDOW_PIXMAP
18 if (have_name_window_pixmap (display))
19 {
20+ meta_error_trap_push (display);
21+
22 if (cw->back_pixmap == None)
23 cw->back_pixmap = XCompositeNameWindowPixmap (xdisplay, cw->id);
24
25+ error_code = meta_error_trap_pop_with_return (display, FALSE);
26+ if (error_code != 0)
27+ cw->back_pixmap = None;
28+
29 if (cw->back_pixmap != None)
30 draw = cw->back_pixmap;
31 }
32@@ -1084,13 +1089,13 @@
33
34 pa.subwindow_mode = IncludeInferiors;
35
36+ meta_error_trap_push (display);
37 pict = XRenderCreatePicture (xdisplay, draw, format, CPSubwindowMode, &pa);
38 meta_error_trap_pop (display, FALSE);
39
40 return pict;
41 }
42
43- meta_error_trap_pop (display, FALSE);
44 return None;
45 }
46
047
=== modified file 'debian/patches/series'
--- debian/patches/series 2015-01-31 15:59:33 +0000
+++ debian/patches/series 2015-02-18 14:24:40 +0000
@@ -2,3 +2,4 @@
2fix_switch_applications.patch2fix_switch_applications.patch
3keycode_to_keysym.patch3keycode_to_keysym.patch
4missing_icon.patch4missing_icon.patch
5compositor-don-t-use-invalid-back_pixmap.patch

Subscribers

People subscribed via source and target branches