Debian Codegraph @

xcb/libqt5xcbqpa-dev/5.4.1/qxcbwmsupport.h

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