summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbwmsupport.h
blob: 77ad55c40278b42bb725cc8ce900c61ce6b00203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// 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 <qlist.h>

QT_BEGIN_NAMESPACE

class QXcbWMSupport : public QXcbObject
{
public:
    QXcbWMSupport(QXcbConnection *c);


    bool isSupportedByWM(xcb_atom_t atom) const;
    const QList<xcb_window_t> &virtualRoots() const { return net_virtual_roots; }

private:
    friend class QXcbConnection;
    void updateNetWMAtoms();
    void updateVirtualRoots();

    QList<xcb_atom_t> net_wm_atoms;
    QList<xcb_window_t> net_virtual_roots;
};

QT_END_NAMESPACE

#endif