Changeset View
Changeset View
Standalone View
Standalone View
deleted.cpp
1 | /******************************************************************** | 1 | /******************************************************************** | ||
---|---|---|---|---|---|
2 | KWin - the KDE window manager | 2 | KWin - the KDE window manager | ||
3 | This file is part of the KDE project. | 3 | This file is part of the KDE project. | ||
4 | 4 | | |||
5 | Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org> | 5 | Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org> | ||
6 | Copyright (C) 2019 Vlad Zahorodnii <vladzzag@gmail.com> | ||||
6 | 7 | | |||
7 | This program is free software; you can redistribute it and/or modify | 8 | This program is free software; you can redistribute it and/or modify | ||
8 | it under the terms of the GNU General Public License as published by | 9 | it under the terms of the GNU General Public License as published by | ||
9 | the Free Software Foundation; either version 2 of the License, or | 10 | the Free Software Foundation; either version 2 of the License, or | ||
10 | (at your option) any later version. | 11 | (at your option) any later version. | ||
11 | 12 | | |||
12 | This program is distributed in the hope that it will be useful, | 13 | This program is distributed in the hope that it will be useful, | ||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 89 | { | |||
90 | delete this; | 91 | delete this; | ||
91 | } | 92 | } | ||
92 | 93 | | |||
93 | void Deleted::copyToDeleted(Toplevel* c) | 94 | void Deleted::copyToDeleted(Toplevel* c) | ||
94 | { | 95 | { | ||
95 | Q_ASSERT(dynamic_cast< Deleted* >(c) == nullptr); | 96 | Q_ASSERT(dynamic_cast< Deleted* >(c) == nullptr); | ||
96 | Toplevel::copyToDeleted(c); | 97 | Toplevel::copyToDeleted(c); | ||
97 | m_bufferGeometry = c->bufferGeometry(); | 98 | m_bufferGeometry = c->bufferGeometry(); | ||
98 | m_bufferMargins = c->bufferMargins(); | | |||
99 | m_frameMargins = c->frameMargins(); | 99 | m_frameMargins = c->frameMargins(); | ||
100 | m_bufferScale = c->bufferScale(); | 100 | m_bufferScale = c->bufferScale(); | ||
101 | desk = c->desktop(); | 101 | desk = c->desktop(); | ||
102 | m_desktops = c->desktops(); | 102 | m_desktops = c->desktops(); | ||
103 | activityList = c->activities(); | 103 | activityList = c->activities(); | ||
104 | contentsRect = QRect(c->clientPos(), c->clientSize()); | 104 | contentsRect = QRect(c->clientPos(), c->clientSize()); | ||
105 | m_contentPos = c->clientContentPos(); | 105 | m_contentPos = c->clientContentPos(); | ||
106 | transparent_rect = c->transparentRect(); | 106 | transparent_rect = c->transparentRect(); | ||
▲ Show 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 159 | { | |||
166 | deleteLater(); | 166 | deleteLater(); | ||
167 | } | 167 | } | ||
168 | 168 | | |||
169 | QRect Deleted::bufferGeometry() const | 169 | QRect Deleted::bufferGeometry() const | ||
170 | { | 170 | { | ||
171 | return m_bufferGeometry; | 171 | return m_bufferGeometry; | ||
172 | } | 172 | } | ||
173 | 173 | | |||
174 | QMargins Deleted::bufferMargins() const | | |||
175 | { | | |||
176 | return m_bufferMargins; | | |||
177 | } | | |||
178 | | ||||
179 | QMargins Deleted::frameMargins() const | 174 | QMargins Deleted::frameMargins() const | ||
180 | { | 175 | { | ||
181 | return m_frameMargins; | 176 | return m_frameMargins; | ||
182 | } | 177 | } | ||
183 | 178 | | |||
184 | qreal Deleted::bufferScale() const | 179 | qreal Deleted::bufferScale() const | ||
185 | { | 180 | { | ||
186 | return m_bufferScale; | 181 | return m_bufferScale; | ||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |