Source

Mirror / src / ewmh.cpp

Full commit
#include "ewmh.h"

xcb_ewmh_connection_t *ewmhInit(xcb_connection_t *conn)
{
    xcb_ewmh_connection_t *ewmh = new xcb_ewmh_connection_t();
    if (xcb_ewmh_init_atoms_replies(ewmh, xcb_ewmh_init_atoms(conn, ewmh), nullptr))
        return ewmh;
    return nullptr;
}

void ewmhDelete(xcb_ewmh_connection_t *ewmh)
{
    xcb_ewmh_connection_wipe(ewmh);
}