// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #ifndef QXCBWMSUPPORT_H #define QXCBWMSUPPORT_H #include "qxcbobject.h" #include "qxcbconnection.h" #include QT_BEGIN_NAMESPACE class QXcbWMSupport : public QXcbObject { public: QXcbWMSupport(QXcbConnection *c); bool isSupportedByWM(xcb_atom_t atom) const; const QList &virtualRoots() const { return net_virtual_roots; } private: friend class QXcbConnection; void updateNetWMAtoms(); void updateVirtualRoots(); QList net_wm_atoms; QList net_virtual_roots; }; QT_END_NAMESPACE #endif