mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-04 08:01:51 +00:00
Rework WindowServer to use select() in its main event loop.
The system can finally idle without burning CPU. :^) There are some issues with scheduling making the mouse cursor sloppy and unresponsive that need to be dealt with.
This commit is contained in:
parent
f7ca6d254d
commit
4fef895eda
Notes:
sideshowbarker
2024-07-19 16:01:27 +09:00
Author: https://github.com/awesomekling
Commit: 4fef895eda
15 changed files with 121 additions and 33 deletions
|
@ -108,8 +108,7 @@ int Process::gui$invalidate_window(int window_id)
|
|||
if (it == m_windows.end())
|
||||
return -EBADWINDOW;
|
||||
auto& window = *(*it).value;
|
||||
// FIXME: This should queue up a message that the window server process can read.
|
||||
// Poking into its data structures is not good.
|
||||
WSEventLoop::the().post_event(&window, make<WSEvent>(WSEvent::WM_Invalidate));
|
||||
WSEventLoop::the().server_process().request_wakeup();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue