[screenedges] Add a missing context to connect
Lambda capturing this should get disconnected when this gets destroyed.
This commit is contained in:
parent
1f2087ce7c
commit
8073d851c4
1 changed files with 1 additions and 1 deletions
|
@ -648,7 +648,7 @@ ScreenEdges::ScreenEdges(QObject *parent)
|
||||||
QWidget w;
|
QWidget w;
|
||||||
m_cornerOffset = (w.physicalDpiX() + w.physicalDpiY() + 5) / 6;
|
m_cornerOffset = (w.physicalDpiX() + w.physicalDpiY() + 5) / 6;
|
||||||
|
|
||||||
connect(workspace(), &Workspace::clientRemoved, [this](KWin::AbstractClient *c) {
|
connect(workspace(), &Workspace::clientRemoved, this, [this](KWin::AbstractClient *c) {
|
||||||
Client *client = qobject_cast<Client*>(c);
|
Client *client = qobject_cast<Client*>(c);
|
||||||
if (!client) {
|
if (!client) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue