Toplevel::setOpacity becomes virtual
It calls unconditionally into NETWinInfo.
This commit is contained in:
parent
23862e512d
commit
b6f793090e
3 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue