summaryrefslogtreecommitdiff
path: root/wm/herbstluftwm
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2020-05-14 18:57:58 +0000
committerjoerg <joerg@pkgsrc.org>2020-05-14 18:57:58 +0000
commit921c791566a9d90c7f6a092e4871421cf7ad4e84 (patch)
tree70d46c5b28569b45c69997470da75dea15e8b076 /wm/herbstluftwm
parente3b6520c904441cad6d3c6d5f6794611da86ac5c (diff)
downloadpkgsrc-921c791566a9d90c7f6a092e4871421cf7ad4e84.tar.gz
Explicitly narrow initializers.
Diffstat (limited to 'wm/herbstluftwm')
-rw-r--r--wm/herbstluftwm/distinfo4
-rw-r--r--wm/herbstluftwm/patches/patch-src_decoration.cpp34
-rw-r--r--wm/herbstluftwm/patches/patch-src_utils.cpp21
3 files changed, 58 insertions, 1 deletions
diff --git a/wm/herbstluftwm/distinfo b/wm/herbstluftwm/distinfo
index fbaf93dc938..670c246bfd7 100644
--- a/wm/herbstluftwm/distinfo
+++ b/wm/herbstluftwm/distinfo
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.1 2020/01/01 15:24:02 nia Exp $
+$NetBSD: distinfo,v 1.2 2020/05/14 18:57:58 joerg Exp $
SHA1 (herbstluftwm-0.7.2.tar.gz) = b07b623fc675ae578a282ded84f38dfa6cd9436e
RMD160 (herbstluftwm-0.7.2.tar.gz) = 1a61cafad3af500d51aa7cd39fb5413055e33178
SHA512 (herbstluftwm-0.7.2.tar.gz) = abb49bbc3de9a0ef619ce7063c1cea0d0d25ab2195c53dc0d33e061ad24060da4bbe9b99b9b9126028cdf68b462d4fcc8d1534431e4892d571ff897a68d2113c
Size (herbstluftwm-0.7.2.tar.gz) = 245506 bytes
SHA1 (patch-CMakeLists.txt) = 0e5090670bba37bf8c264af1e02dd33e5b2146b8
+SHA1 (patch-src_decoration.cpp) = 106e4084a21034e2ea6b27b69b817344f5cc948f
+SHA1 (patch-src_utils.cpp) = 7a0b56169de193a8622fae70985a4766698c9f98
diff --git a/wm/herbstluftwm/patches/patch-src_decoration.cpp b/wm/herbstluftwm/patches/patch-src_decoration.cpp
new file mode 100644
index 00000000000..b9310667a35
--- /dev/null
+++ b/wm/herbstluftwm/patches/patch-src_decoration.cpp
@@ -0,0 +1,34 @@
+$NetBSD: patch-src_decoration.cpp,v 1.1 2020/05/14 18:57:58 joerg Exp $
+
+--- src/decoration.cpp.orig 2020-05-10 21:59:55.356580498 +0000
++++ src/decoration.cpp
+@@ -526,10 +526,10 @@ void decoration_redraw_pixmap(struct HSC
+ if (iw > 0) {
+ /* fill rectangles because drawing does not work */
+ XRectangle rects[] = {
+- { inner.x - iw, inner.y - iw, inner.width + 2*iw, iw }, /* top */
+- { inner.x - iw, inner.y, iw, inner.height }, /* left */
+- { inner.x + inner.width, inner.y, iw, inner.height }, /* right */
+- { inner.x - iw, inner.y + inner.height, inner.width + 2*iw, iw }, /* bottom */
++ { (short)(inner.x - iw), (short)(inner.y - iw), (unsigned short)(inner.width + 2*iw), (unsigned short)iw }, /* top */
++ { (short)(inner.x - iw), (short)(inner.y), (unsigned short)iw, (unsigned short)inner.height }, /* left */
++ { (short)(inner.x + inner.width), (short)(inner.y), (unsigned short)iw, (unsigned short)inner.height }, /* right */
++ { (short)(inner.x - iw), (short)(inner.y + inner.height), (unsigned short)(inner.width + 2*iw), (unsigned short)iw }, /* bottom */
+ };
+ XSetForeground(g_display, gc, get_client_color(client, s.inner_color));
+ XFillRectangles(g_display, pix, gc, rects, LENGTH(rects));
+@@ -542,10 +542,10 @@ void decoration_redraw_pixmap(struct HSC
+ if (ow > 0) {
+ ow = MIN(ow, (outer.height+1) / 2);
+ XRectangle rects[] = {
+- { 0, 0, outer.width, ow }, /* top */
+- { 0, ow, ow, outer.height - 2*ow }, /* left */
+- { outer.width-ow, ow, ow, outer.height - 2*ow }, /* right */
+- { 0, outer.height - ow, outer.width, ow }, /* bottom */
++ { 0, 0, (unsigned short)outer.width, (unsigned short)ow }, /* top */
++ { 0, (short)ow, (unsigned short)ow, (unsigned short)(outer.height - 2*ow) }, /* left */
++ { (short)(outer.width-ow), (short)ow, (unsigned short)ow, (unsigned short)(outer.height - 2*ow) }, /* right */
++ { 0, (short)(outer.height - ow), (unsigned short)outer.width, (unsigned short)ow }, /* bottom */
+ };
+ XSetForeground(g_display, gc, get_client_color(client, s.outer_color));
+ XFillRectangles(g_display, pix, gc, rects, LENGTH(rects));
diff --git a/wm/herbstluftwm/patches/patch-src_utils.cpp b/wm/herbstluftwm/patches/patch-src_utils.cpp
new file mode 100644
index 00000000000..d195f351838
--- /dev/null
+++ b/wm/herbstluftwm/patches/patch-src_utils.cpp
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_utils.cpp,v 1.1 2020/05/14 18:57:58 joerg Exp $
+
+--- src/utils.cpp.orig 2020-05-10 22:10:06.527093091 +0000
++++ src/utils.cpp
+@@ -382,11 +382,11 @@ void set_window_double_border(Display *d
+
+ XRectangle rectangles[] =
+ {
+- { width, 0, ibw, height + ibw },
+- { full_width - ibw, 0, ibw, height + ibw },
+- { 0, height, width + ibw, ibw },
+- { 0, full_height - ibw, width + ibw, ibw },
+- { full_width - ibw, full_height - ibw, ibw, ibw }
++ { (short)width, 0, (unsigned short)ibw, (unsigned short)(height + ibw) },
++ { (short)(full_width - ibw), 0, (unsigned short)ibw, (unsigned short)(height + ibw) },
++ { 0, (short)height, (unsigned short)(width + ibw), (unsigned short)ibw },
++ { 0, (short)(full_height - ibw), (unsigned short)(width + ibw), (unsigned short)ibw },
++ { (short)(full_width - ibw), (short)(full_height - ibw), (unsigned short)ibw, (unsigned short)ibw }
+ };
+
+ Pixmap pix = XCreatePixmap(dpy, win, full_width, full_height, depth);