aboutsummaryrefslogtreecommitdiff
path: root/x11/xcb-util/files/patch-icccm-icccm.c
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2011-12-16 11:26:20 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2011-12-16 11:26:20 +0000
commit2beea5add25234d5988ad379a32b660bd81a0735 (patch)
tree6b69a4103191c847344a469d70877d57d634eddb /x11/xcb-util/files/patch-icccm-icccm.c
parentdb836b18f5bcf6d46a733de90628a068dd1feb33 (diff)
downloadports-2beea5add25234d5988ad379a32b660bd81a0735.tar.gz
ports-2beea5add25234d5988ad379a32b660bd81a0735.zip
Revert previous commit and roll back to 0.3.6 as the 0.3.8 introduces
a number of backward incompatible changes. Pointy hat to: novel
Notes
Notes: svn path=/head/; revision=287470
Diffstat (limited to 'x11/xcb-util/files/patch-icccm-icccm.c')
-rw-r--r--x11/xcb-util/files/patch-icccm-icccm.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/xcb-util/files/patch-icccm-icccm.c b/x11/xcb-util/files/patch-icccm-icccm.c
new file mode 100644
index 000000000000..508c26a1f030
--- /dev/null
+++ b/x11/xcb-util/files/patch-icccm-icccm.c
@@ -0,0 +1,20 @@
+--- icccm/icccm.c.orig 2009-08-24 11:47:36.000000000 +0300
++++ icccm/icccm.c 2009-10-21 21:01:52.000000000 +0300
+@@ -627,15 +627,13 @@
+ xcb_get_wm_hints_from_reply(xcb_wm_hints_t *hints,
+ xcb_get_property_reply_t *reply)
+ {
+- if(!reply)
++ if(!reply || reply->type != WM_HINTS || reply->format != 32)
+ return 0;
+
+ int length = xcb_get_property_value_length(reply);
+ int num_elem = length / (reply->format / 8);
+
+- if (reply->type != WM_HINTS
+- || reply->format != 32
+- || num_elem < XCB_NUM_WM_HINTS_ELEMENTS - 1)
++ if(num_elem < XCB_NUM_WM_HINTS_ELEMENTS - 1)
+ return 0;
+
+ memcpy(hints, (xcb_size_hints_t *) xcb_get_property_value(reply), length);