From 973d4b22b70621607976ffc37ad51db25dd2105a Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 6 Nov 2015 13:38:56 -0500 Subject: Add the WM_PROTOCOLS ICCCM support to the lumina library. --- libLumina/LuminaX11.cpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'libLumina/LuminaX11.cpp') diff --git a/libLumina/LuminaX11.cpp b/libLumina/LuminaX11.cpp index 11c0f0ef..62f21d49 100644 --- a/libLumina/LuminaX11.cpp +++ b/libLumina/LuminaX11.cpp @@ -1197,6 +1197,44 @@ void WM_ICCCM_SetTransientFor(WId win, WId transient){ // -- WM_HINTS // -- WM_PROTOCOLS +LXCB::ICCCM_PROTOCOLS LXCB::WM_ICCCM_GetProtocols(WId win){ + if(atoms.isEmpty()){ createWMAtoms(); } + xcb_get_property_cookie_t cookie = xcb_icccm_get_wm_protocols(QX11Info::connection(), win, EWMH.WM_PROTOCOLS); + xcb_icccm_get_wm_protocols_reply_t reply; + LXCB::ICCCM_PROTOCOLS flags; + if(1==xcb_icccm_get_wm_protocols_reply(QX11Info::connection(), cookie, &reply, NULL) ){ + for(unsigned int i=0; i