summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-16 10:11:41 +0100
committerJohns <johns98@gmx.net>2011-12-16 10:14:53 +0100
commitde6776a88531af720dba33f2db630e1286d17b17 (patch)
treeb59edce8d457efdb3e2449cea2add790a58d87f3
parent3da81fdfccef94b1a83121873aa3d1a38086135f (diff)
downloadvdr-plugin-softhddevice-de6776a88531af720dba33f2db630e1286d17b17.tar.gz
vdr-plugin-softhddevice-de6776a88531af720dba33f2db630e1286d17b17.tar.bz2
Support xcb_set_wm_protocols for xcb-util <0.3.8.
-rw-r--r--ChangeLog1
-rw-r--r--video.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5555cca..59d21d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
User johns
Date:
+ Support xcb_icccm_set_wm_protocols with xcb-util <0.3.8.
New video/audio sync code.
Support xcb-util <0.3.8.
Use current configuration for setup menu.
diff --git a/video.c b/video.c
index 00e9295..0e437d8 100644
--- a/video.c
+++ b/video.c
@@ -3725,8 +3725,14 @@ static void VideoCreateWindow(xcb_window_t parent, xcb_visualid_t visual,
xcb_intern_atom_reply(Connection, xcb_intern_atom(Connection,
0, sizeof("WM_PROTOCOLS") - 1, "WM_PROTOCOLS"),
NULL))) {
+#ifdef XCB_ICCCM_NUM_WM_SIZE_HINTS_ELEMENTS
xcb_icccm_set_wm_protocols(Connection, VideoWindow, reply->atom, 1,
&WmDeleteWindowAtom);
+#endif
+#ifdef XCB_NUM_WM_HINTS_ELEMENTS
+ xcb_set_wm_protocols(Connection, reply->atom, VideoWindow, 1,
+ &WmDeleteWindowAtom);
+#endif
free(reply);
}
}