View | Details | Raw Unified | Return to bug 139863
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	xcb-util
8
PORTNAME=	xcb-util
9
PORTVERSION=	0.3.6
9
PORTVERSION=	0.3.6
10
PORTREVISION=	1
10
CATEGORIES=	x11
11
CATEGORIES=	x11
11
MASTER_SITES=	http://xcb.freedesktop.org/dist/
12
MASTER_SITES=	http://xcb.freedesktop.org/dist/
12
13
(-)files/patch-icccm-icccm.c (+20 lines)
Line 0 Link Here
1
--- icccm/icccm.c.orig	2009-08-24 11:47:36.000000000 +0300
2
+++ icccm/icccm.c	2009-10-21 21:01:52.000000000 +0300
3
@@ -627,15 +627,13 @@
4
 xcb_get_wm_hints_from_reply(xcb_wm_hints_t *hints,
5
                             xcb_get_property_reply_t *reply)
6
 {
7
-  if(!reply)
8
+  if(!reply || reply->type != WM_HINTS || reply->format != 32)
9
     return 0;
10
 
11
   int length = xcb_get_property_value_length(reply);
12
   int num_elem = length / (reply->format / 8);
13
 
14
-  if (reply->type != WM_HINTS
15
-      || reply->format != 32
16
-      || num_elem < XCB_NUM_WM_HINTS_ELEMENTS - 1)
17
+  if(num_elem < XCB_NUM_WM_HINTS_ELEMENTS - 1)
18
     return 0;
19
 
20
   memcpy(hints, (xcb_size_hints_t *) xcb_get_property_value(reply), length);

Return to bug 139863