Require the compositor to call IdleInterface::simulateUserActivity() explicitly

In some cases, kwin may decide not to forward input events to the seat.
This commit is contained in:
Vlad Zahorodnii 2021-10-27 17:22:21 +03:00
parent 81e7c10a73
commit 12946a9ec9
2 changed files with 1 additions and 4 deletions

View file

@ -135,7 +135,7 @@ void IdleTest::testTimeout()
// simulate some activity
QVERIFY(resumedFormIdleSpy.isEmpty());
m_seatInterface->setTimestamp(1);
m_idleInterface->simulateUserActivity();
QVERIFY(resumedFormIdleSpy.wait());
timeout.reset();

View file

@ -79,9 +79,6 @@ IdleTimeoutInterface::IdleTimeoutInterface(SeatInterface *seat, IdleInterface *m
, seat(seat)
, manager(manager)
{
connect(seat, &SeatInterface::timestampChanged, this, [this] {
simulateUserActivity();
});
connect(manager, &IdleInterface::inhibitedChanged, this, [this, manager] {
if (!timer) {
// not yet configured