Changeset View
Changeset View
Standalone View
Standalone View
effects/presentwindows/presentwindows.cpp
Show All 34 Lines | |||||
35 | #include <assert.h> | 35 | #include <assert.h> | ||
36 | #include <limits.h> | 36 | #include <limits.h> | ||
37 | #include <QApplication> | 37 | #include <QApplication> | ||
38 | #include <QQmlContext> | 38 | #include <QQmlContext> | ||
39 | #include <QQmlEngine> | 39 | #include <QQmlEngine> | ||
40 | #include <QQuickItem> | 40 | #include <QQuickItem> | ||
41 | #include <QQuickView> | 41 | #include <QQuickView> | ||
42 | #include <QGraphicsObject> | 42 | #include <QGraphicsObject> | ||
43 | #include <QTimer> | 43 | #include <QTimer> | ||
zzag: Probably unrelated whitespace change. | |||||
44 | #include <QElapsedTimer> | 44 | #include <QElapsedTimer> | ||
45 | #include <QVector2D> | 45 | #include <QVector2D> | ||
46 | #include <QVector4D> | 46 | #include <QVector4D> | ||
47 | 47 | | |||
48 | namespace KWin | 48 | namespace KWin | ||
49 | { | 49 | { | ||
50 | 50 | | |||
51 | PresentWindowsEffect::PresentWindowsEffect() | 51 | PresentWindowsEffect::PresentWindowsEffect() | ||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 67 | { | |||
106 | connect(effects, &EffectsHandler::windowGeometryShapeChanged, this, &PresentWindowsEffect::slotWindowGeometryShapeChanged); | 106 | connect(effects, &EffectsHandler::windowGeometryShapeChanged, this, &PresentWindowsEffect::slotWindowGeometryShapeChanged); | ||
107 | connect(effects, &EffectsHandler::propertyNotify, this, &PresentWindowsEffect::slotPropertyNotify); | 107 | connect(effects, &EffectsHandler::propertyNotify, this, &PresentWindowsEffect::slotPropertyNotify); | ||
108 | connect(effects, &EffectsHandler::numberScreensChanged, this, | 108 | connect(effects, &EffectsHandler::numberScreensChanged, this, | ||
109 | [this] { | 109 | [this] { | ||
110 | if (isActive()) | 110 | if (isActive()) | ||
111 | reCreateGrids(); | 111 | reCreateGrids(); | ||
112 | } | 112 | } | ||
113 | ); | 113 | ); | ||
114 | connect(effects, &EffectsHandler::screenAboutToLock, this, [this]() { | ||||
115 | setActive(false); | ||||
116 | }); | ||||
114 | } | 117 | } | ||
115 | 118 | | |||
116 | PresentWindowsEffect::~PresentWindowsEffect() | 119 | PresentWindowsEffect::~PresentWindowsEffect() | ||
zzag: Don't need that. | |||||
117 | { | 120 | { | ||
118 | delete m_filterFrame; | 121 | delete m_filterFrame; | ||
119 | delete m_closeView; | 122 | delete m_closeView; | ||
120 | } | 123 | } | ||
121 | 124 | | |||
122 | void PresentWindowsEffect::reconfigure(ReconfigureFlags) | 125 | void PresentWindowsEffect::reconfigure(ReconfigureFlags) | ||
123 | { | 126 | { | ||
124 | PresentWindowsConfig::self()->read(); | 127 | PresentWindowsConfig::self()->read(); | ||
▲ Show 20 Lines • Show All 1943 Lines • Show Last 20 Lines |
Probably unrelated whitespace change.