mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 15:07:35 +00:00
WindowServer: Get rid of the WSWindow lock now that accesses are serial.
This commit is contained in:
parent
e5df2a5d5b
commit
c4703bedea
4 changed files with 17 additions and 43 deletions
|
@ -68,7 +68,6 @@ WSWindow& WSMenu::ensure_menu_window()
|
|||
}
|
||||
|
||||
auto window = make<WSWindow>(*this);
|
||||
WSWindowLocker locker(*window);
|
||||
window->set_rect(0, 0, width(), height());
|
||||
m_menu_window = move(window);
|
||||
draw();
|
||||
|
@ -79,7 +78,6 @@ WSWindow& WSMenu::ensure_menu_window()
|
|||
void WSMenu::draw()
|
||||
{
|
||||
ASSERT(menu_window());
|
||||
WSWindowLocker locker(*menu_window());
|
||||
ASSERT(menu_window()->backing());
|
||||
Painter painter(*menu_window()->backing());
|
||||
|
||||
|
@ -105,7 +103,6 @@ void WSMenu::draw()
|
|||
|
||||
void WSMenu::on_window_message(WSMessage& message)
|
||||
{
|
||||
WSWindowLocker locker(*menu_window());
|
||||
ASSERT(menu_window());
|
||||
if (message.type() == WSMessage::MouseMove) {
|
||||
auto* item = item_at(static_cast<WSMouseEvent&>(message).position());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue