1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef QXCBWMSUPPORT_H
4#define QXCBWMSUPPORT_H
5
6#include "qxcbobject.h"
7#include "qxcbconnection.h"
8#include <qlist.h>
9
10QT_BEGIN_NAMESPACE
11
12class QXcbWMSupport : public QXcbObject
13{
14public:
15 QXcbWMSupport(QXcbConnection *c);
16
17
18 bool isSupportedByWM(xcb_atom_t atom) const;
19 const QList<xcb_window_t> &virtualRoots() const { return net_virtual_roots; }
20
21private:
22 friend class QXcbConnection;
23 void updateNetWMAtoms();
24 void updateVirtualRoots();
25
26 QList<xcb_atom_t> net_wm_atoms;
27 QList<xcb_window_t> net_virtual_roots;
28};
29
30QT_END_NAMESPACE
31
32#endif
33

source code of qtbase/src/plugins/platforms/xcb/qxcbwmsupport.h