mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +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:
parent
ae4ac524ad
commit
3fa0b6cd92
4 changed files with 16 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue