mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
WindowServer: Fix assertion on key press
This commit is contained in:
parent
73110e25a9
commit
0709c17487
Notes:
sideshowbarker
2024-07-19 09:33:18 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0709c17487b
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
Reference in a new issue