mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 17:15:44 +00:00
WindowServer: Always update the maximize button icon when we should.
We were only updating it in the WSButton callback, not when changing the maximized state by calling WSWindow::set_maximized(). Fixes #119.
This commit is contained in:
@@ -501,11 +501,7 @@ bool WSWindowManager::process_ongoing_window_drag(WSMouseEvent& event, WSWindow*
|
||||
#if defined(DOUBLECLICK_DEBUG)
|
||||
dbgprintf("[WM] Click up became doubleclick!\n");
|
||||
#endif
|
||||
if (m_drag_window->is_maximized()) {
|
||||
m_drag_window->set_maximized(false);
|
||||
} else {
|
||||
m_drag_window->set_maximized(true);
|
||||
}
|
||||
m_drag_window->set_maximized(!m_drag_window->is_maximized());
|
||||
}
|
||||
}
|
||||
m_drag_window = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user