Set timestamp on WaylandSeat for key event in LockScreenFilter

Was missing.
This commit is contained in:
Martin Gräßlin 2016-02-16 17:14:28 +01:00
parent 5ee90dce3d
commit 46e3da297c

View file

@ -173,11 +173,12 @@ public:
// continue normal processing // continue normal processing
input()->keyboard()->update(); input()->keyboard()->update();
auto seat = waylandServer()->seat();
seat->setTimestamp(event->timestamp());
if (!keyboardSurfaceAllowed()) { if (!keyboardSurfaceAllowed()) {
// don't pass event to seat // don't pass event to seat
return true; return true;
} }
auto seat = waylandServer()->seat();
switch (event->type()) { switch (event->type()) {
case QEvent::KeyPress: case QEvent::KeyPress:
seat->keyPressed(event->nativeScanCode()); seat->keyPressed(event->nativeScanCode());