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:
parent
81e7c10a73
commit
12946a9ec9
2 changed files with 1 additions and 4 deletions
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue