mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
WindowServer: Fix assertion on key press
This commit is contained in:
parent
73110e25a9
commit
0709c17487
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ void EventLoop::drain_keyboard()
|
|||
ssize_t nread = read(m_keyboard_fd, (u8*)&event, sizeof(KeyEvent));
|
||||
if (nread == 0)
|
||||
break;
|
||||
ASSERT(nread == sizeof(KeyEvent));
|
||||
ASSERT(nread == sizeof(::KeyEvent));
|
||||
screen.on_receive_keyboard_data(event);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue