diff --git a/SOURCES/zero-height-width.patch b/SOURCES/zero-height-width.patch new file mode 100644 index 0000000..9c61fa4 --- /dev/null +++ b/SOURCES/zero-height-width.patch @@ -0,0 +1,23 @@ +diff --git a/src/.mbtheme.c.swp b/src/.mbtheme.c.swp +index 1169406..7023843 100644 +Binary files a/src/.mbtheme.c.swp and b/src/.mbtheme.c.swp differ +diff --git a/src/mbtheme.c b/src/mbtheme.c +index 9a40abd..df8513a 100644 +--- a/src/mbtheme.c ++++ b/src/mbtheme.c +@@ -152,10 +152,14 @@ void theme_frame_icon_paint(MBTheme *t, Client *c, + } + } + ++ if (img != NULL && (img->height == 0 || img->width == 0)) { ++ mb_pixbuf_img_free(t->wm->pb, img); ++ img = NULL; ++ } + if( img == NULL) + img = mb_pixbuf_img_clone(t->wm->pb, c->wm->img_generic_icon); + +- if (img->width != 16 || img->height != 16) ++ if (img->width != 16 || img->height != 16) + { + MBPixbufImage *tmp_img; + tmp_img = mb_pixbuf_img_scale(t->wm->pb, img, 16, 16); diff --git a/SPECS/matchbox-window-manager.spec b/SPECS/matchbox-window-manager.spec index 43528fd..a0b2d7b 100644 --- a/SPECS/matchbox-window-manager.spec +++ b/SPECS/matchbox-window-manager.spec @@ -4,7 +4,7 @@ Summary: Window manager for the Matchbox Desktop Name: matchbox-window-manager Version: 1.2 -Release: 15.%{alphatag}%{?dist} +Release: 16.1.%{alphatag}%{?dist} Url: http://projects.o-hand.com/matchbox/ # svn checkout http://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager License: GPLv2+ @@ -12,6 +12,8 @@ Group: User Interface/Desktops Source0: %{name}-%{version}-%{alphatag}.tar.gz Patch1: matchbox-window-manager-1.2-keysyms.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1284728 +Patch10: zero-height-width.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: pkgconfig @@ -39,6 +41,7 @@ This package contains the window manager from Matchbox. %setup -q %patch1 -p2 -b .keysyms +%patch10 -p1 -b .zero %build %configure @@ -62,6 +65,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/themes/* %changelog +* Thu Apr 14 2016 Petr Lautrbach - 1.2-16.20070628svn +- Do not try to compute new proportions when one of the original is 0 (#1284728) + * Fri Jan 24 2014 Daniel Mach - 1.2-15.20070628svn - Mass rebuild 2014-01-24