Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.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) 2015 Martin Gräßlin <mgraesslin@kde.org> | 5 | Copyright (C) 2015 Martin Gräßlin <mgraesslin@kde.org> | ||
6 | Copyright (C) 2019 Vlad Zagorodniy <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 2073 Lines • ▼ Show 20 Line(s) | 2087 | { | |||
2087 | return false; | 2088 | return false; | ||
2088 | } | 2089 | } | ||
2089 | 2090 | | |||
2090 | bool AbstractClient::supportsWindowRules() const | 2091 | bool AbstractClient::supportsWindowRules() const | ||
2091 | { | 2092 | { | ||
2092 | return true; | 2093 | return true; | ||
2093 | } | 2094 | } | ||
2094 | 2095 | | |||
2096 | QMargins AbstractClient::frameMargins() const | ||||
2097 | { | ||||
2098 | return QMargins(borderLeft(), borderTop(), borderRight(), borderBottom()); | ||||
2099 | } | ||||
2100 | | ||||
2095 | } | 2101 | } |