File indexing completed on 2024-11-10 04:56:39

0001 /*
0002     KWin - the KDE window manager
0003     This file is part of the KDE project.
0004 
0005     SPDX-FileCopyrightText: 2021 Xaver Hugl <xaver.hugl@gmail.com>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 #include "outputconfiguration.h"
0010 
0011 namespace KWin
0012 {
0013 
0014 std::shared_ptr<OutputChangeSet> OutputConfiguration::changeSet(Output *output)
0015 {
0016     auto &ret = m_properties[output];
0017     if (!ret) {
0018         ret = std::make_shared<OutputChangeSet>();
0019     }
0020     return ret;
0021 }
0022 
0023 std::shared_ptr<OutputChangeSet> OutputConfiguration::constChangeSet(Output *output) const
0024 {
0025     return m_properties[output];
0026 }
0027 }