Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwaylandsubsurface.cpp
Go to the documentation of this file.
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
5
6#include "qwaylandwindow_p.h"
7
8#include <QtCore/QDebug>
9
11
12namespace QtWaylandClient {
13
15 : QtWayland::wl_subsurface(sub_surface)
16 , m_window(window)
17 , m_parent(parent)
18{
19 m_parent->mChildren << this;
20 setDeSync();
21}
22
24{
25 m_parent->mChildren.removeOne(this);
26 destroy();
27}
28
30{
31 QMutexLocker l(&m_syncLock);
32 QWaylandSubSurface::set_sync();
33}
34
36{
37 QMutexLocker l(&m_syncLock);
38 QWaylandSubSurface::set_desync();
39}
40
41void QWaylandSubSurface::set_sync()
42{
43 m_synchronized = true;
44 QtWayland::wl_subsurface::set_sync();
45}
46
47void QWaylandSubSurface::set_desync()
48{
49 m_synchronized = false;
50 QtWayland::wl_subsurface::set_desync();
51}
52
53}
54
\inmodule QtCore
Definition qmutex.h:313
QWaylandSubSurface(QWaylandWindow *window, QWaylandWindow *parent, ::wl_subsurface *subsurface)
QList< QWaylandSubSurface * > mChildren
Combined button and popup list for selecting options.
aWidget window() -> setWindowTitle("New Window Title")
[2]