25void QXcbWMSupport::updateNetWMAtoms()
39 if (
reply->type == XCB_ATOM_ATOM &&
reply->format == 32) {
40 int len = xcb_get_property_value_length(
reply.get())/
sizeof(xcb_atom_t);
41 xcb_atom_t *atoms = (xcb_atom_t *)xcb_get_property_value(
reply.get());
42 int s = net_wm_atoms.
size();
44 memcpy(net_wm_atoms.
data() +
s, atoms,
len*
sizeof(xcb_atom_t));
46 remaining =
reply->bytes_after;
49 }
while (remaining > 0);
53void QXcbWMSupport::updateVirtualRoots()
55 net_virtual_roots.
clear();
71 if (
reply->type == XCB_ATOM_WINDOW &&
reply->format == 32) {
72 int len = xcb_get_property_value_length(
reply.get())/
sizeof(xcb_window_t);
73 xcb_window_t *roots = (xcb_window_t *)xcb_get_property_value(
reply.get());
74 int s = net_virtual_roots.
size();
76 memcpy(net_virtual_roots.
data() +
s, roots,
len*
sizeof(xcb_window_t));
78 remaining =
reply->bytes_after;
82 }
while (remaining > 0);
85#ifdef VIRTUAL_ROOTS_DEBUG
86 qDebug(
"======== updateVirtualRoots");
87 for (
int i = 0;
i < net_virtual_roots.
size(); ++
i)
89 qDebug(
"======== updateVirtualRoots");
qsizetype size() const noexcept
const_reference at(qsizetype i) const noexcept
void resize(qsizetype size)
QByteArray atomName(xcb_atom_t atom)
QXcbScreen * primaryScreen() const
QXcbConnection * connection() const
xcb_connection_t * xcb_connection() const
xcb_atom_t atom(QXcbAtom::Atom atom) const
xcb_window_t root() const
QXcbWMSupport(QXcbConnection *c)
bool isSupportedByWM(xcb_atom_t atom) const
Combined button and popup list for selecting options.
GLenum GLuint GLintptr offset
#define Q_XCB_REPLY(call,...)
bool contains(const AT &t) const noexcept