wayland: support removing the fake input interface
If it can be removed, we better react to it.
This commit is contained in:
parent
41e13c2e84
commit
4b261508ff
2 changed files with 3 additions and 1 deletions
|
@ -46,6 +46,7 @@ WaylandRemoteInput::WaylandRemoteInput(QObject* parent)
|
|||
m_waylandInput = registry->createFakeInput(name, version, this);
|
||||
}
|
||||
);
|
||||
connect(registry, &Registry::fakeInputRemoved, m_waylandInput, &QObject::deleteLater);
|
||||
registry->setup();
|
||||
}
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#ifndef WAYLANDREMOTEINPUT_H
|
||||
#define WAYLANDREMOTEINPUT_H
|
||||
|
||||
#include <QPointer>
|
||||
#include "abstractremoteinput.h"
|
||||
|
||||
namespace KWayland
|
||||
|
@ -44,7 +45,7 @@ public:
|
|||
private:
|
||||
void setupWaylandIntegration();
|
||||
|
||||
KWayland::Client::FakeInput* m_waylandInput;
|
||||
QPointer<KWayland::Client::FakeInput> m_waylandInput;
|
||||
bool m_waylandAuthenticationRequested;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue