1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:08:12 +00:00

LibGUI: Don't spam WindowServer with SetWindowOverrideCursor messages

Remember the override cursor in GUI::Window and avoid sending a message
to WindowServer when possible.

This removes a lot of synchronous IPC between Browser and WindowServer,
which noticeably improves DOM event responsiveness. :^)
This commit is contained in:
Andreas Kling 2020-03-22 01:07:07 +01:00
parent 065db26d7c
commit ec6e55cfc6
2 changed files with 6 additions and 0 deletions

View file

@ -212,6 +212,7 @@ private:
Gfx::Size m_base_size;
Color m_background_color { Color::WarmGray };
WindowType m_window_type { WindowType::Normal };
StandardCursor m_override_cursor { StandardCursor::None };
bool m_is_active { false };
bool m_has_alpha_channel { false };
bool m_double_buffering_enabled { true };