Debian Codegraph @

xcb/libqt5xcbqpa-dev/5.12.5/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
5 #ifndef QXCBWMSUPPORT_H
6 #define QXCBWMSUPPORT_H
7
8 #include "qxcbobject.h"
9 #include "qxcbconnection.h"
10 #include <qvector.h>
11
12 QT_BEGIN_NAMESPACE
13
14 class QXcbWMSupport : public QXcbObject
15 {
16 public:
17 QXcbWMSupport(QXcbConnection *c);
18
19
20 bool isSupportedByWM(xcb_atom_t atom) const;
21 const QVector<xcb_window_t> &virtualRoots() const { return net_virtual_roots; }
22
23 private:
24 friend class QXcbConnection;
25 void updateNetWMAtoms();
26 void updateVirtualRoots();
27
28 QVector<xcb_atom_t> net_wm_atoms;
29 QVector<xcb_window_t> net_virtual_roots;
30 };
31
32 QT_END_NAMESPACE
33
34 #endif