mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Support xcb_set_wm_protocols for xcb-util <0.3.8.
This commit is contained in:
parent
3da81fdfcc
commit
de6776a885
@ -1,6 +1,7 @@
|
|||||||
User johns
|
User johns
|
||||||
Date:
|
Date:
|
||||||
|
|
||||||
|
Support xcb_icccm_set_wm_protocols with xcb-util <0.3.8.
|
||||||
New video/audio sync code.
|
New video/audio sync code.
|
||||||
Support xcb-util <0.3.8.
|
Support xcb-util <0.3.8.
|
||||||
Use current configuration for setup menu.
|
Use current configuration for setup menu.
|
||||||
|
6
video.c
6
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,
|
xcb_intern_atom_reply(Connection, xcb_intern_atom(Connection,
|
||||||
0, sizeof("WM_PROTOCOLS") - 1, "WM_PROTOCOLS"),
|
0, sizeof("WM_PROTOCOLS") - 1, "WM_PROTOCOLS"),
|
||||||
NULL))) {
|
NULL))) {
|
||||||
|
#ifdef XCB_ICCCM_NUM_WM_SIZE_HINTS_ELEMENTS
|
||||||
xcb_icccm_set_wm_protocols(Connection, VideoWindow, reply->atom, 1,
|
xcb_icccm_set_wm_protocols(Connection, VideoWindow, reply->atom, 1,
|
||||||
&WmDeleteWindowAtom);
|
&WmDeleteWindowAtom);
|
||||||
|
#endif
|
||||||
|
#ifdef XCB_NUM_WM_HINTS_ELEMENTS
|
||||||
|
xcb_set_wm_protocols(Connection, reply->atom, VideoWindow, 1,
|
||||||
|
&WmDeleteWindowAtom);
|
||||||
|
#endif
|
||||||
free(reply);
|
free(reply);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user