Fix a few compile warnings
This commit is contained in:
parent
3982f8399f
commit
c5907e8f36
4 changed files with 6 additions and 3 deletions
|
@ -551,13 +551,13 @@ public:
|
|||
void setText(const QString& text) override;
|
||||
EffectFrameStyle style() const override {
|
||||
return m_style;
|
||||
};
|
||||
}
|
||||
Plasma::FrameSvg& frame() {
|
||||
return m_frame;
|
||||
}
|
||||
bool isStatic() const {
|
||||
return m_static;
|
||||
};
|
||||
}
|
||||
void finalRender(QRegion region, double opacity, double frameOpacity) const;
|
||||
void setShader(GLShader* shader) override {
|
||||
m_shader = shader;
|
||||
|
|
|
@ -69,6 +69,7 @@ void FallApartEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData& data,
|
|||
void FallApartEffect::deform(EffectWindow *w, int mask, WindowPaintData &data, WindowQuadList &quads)
|
||||
{
|
||||
Q_UNUSED(w)
|
||||
Q_UNUSED(mask)
|
||||
auto animationIt = windows.constFind(w);
|
||||
if (animationIt != windows.constEnd() && isRealWindow(w)) {
|
||||
const qreal t = animationIt->progress;
|
||||
|
|
|
@ -131,7 +131,7 @@ void KWIN_EXPORT ungrabXKeyboard();
|
|||
*/
|
||||
qreal KWIN_EXPORT qPainterEffectiveDevicePixelRatio(const QPainter *painter);
|
||||
|
||||
static inline QRegion KWIN_EXPORT mapRegion(const QMatrix4x4 &matrix, const QRegion ®ion)
|
||||
static inline QRegion mapRegion(const QMatrix4x4 &matrix, const QRegion ®ion)
|
||||
{
|
||||
QRegion result;
|
||||
for (const QRect &rect : region) {
|
||||
|
|
|
@ -157,6 +157,8 @@ void Clipboard::doHandleXfixesNotify(xcb_xfixes_selection_notify_event_t *event)
|
|||
|
||||
void Clipboard::x11OffersChanged(const QStringList &added, const QStringList &removed)
|
||||
{
|
||||
Q_UNUSED(added)
|
||||
Q_UNUSED(removed)
|
||||
m_waitingForTargets = false;
|
||||
X11Source *source = x11Source();
|
||||
if (!source) {
|
||||
|
|
Loading…
Reference in a new issue