Toplevel::setOpacity becomes virtual

It calls unconditionally into NETWinInfo.
icc-effect-5.14.5
Martin Gräßlin 2015-03-16 09:13:19 +01:00
parent 23862e512d
commit b6f793090e
3 changed files with 7 additions and 1 deletions

View File

@ -132,6 +132,11 @@ double ShellClient::opacity() const
return 1.0;
}
void ShellClient::setOpacity(double opacity)
{
Q_UNUSED(opacity)
}
void ShellClient::addDamage(const QRegion &damage)
{
setReadyForPainting();

View File

@ -50,6 +50,7 @@ public:
NET::WindowType windowType(bool direct = false, int supported_types = 0) const override;
void debug(QDebug &stream) const override;
double opacity() const override;
void setOpacity(double opacity) override;
QByteArray windowRole() const override;
KWayland::Server::ShellSurfaceInterface *shellSurface() const {

View File

@ -268,7 +268,7 @@ public:
bool readyForPainting() const; // true if the window has been already painted its contents
xcb_visualid_t visual() const;
bool shape() const;
void setOpacity(double opacity);
virtual void setOpacity(double opacity);
virtual double opacity() const;
int depth() const;
bool hasAlpha() const;