mirror of
https://github.com/RGBCube/serenity
synced 2026-01-18 15:31:00 +00:00
WindowServer: Don't allow minimize/maximize of windows while modal up
While one window is blocked by another modal one, just ignore events on the window frame, and also ignore set_minimized() and set_maximized(). The only thing you're allowed to do with a blocked window is moving it. Fixes #1111.
This commit is contained in:
parent
6df81c8a88
commit
b648997d1f
2 changed files with 7 additions and 0 deletions
|
|
@ -306,6 +306,9 @@ void WSWindowFrame::on_mouse_event(const WSMouseEvent& event)
|
|||
{
|
||||
ASSERT(!m_window.is_fullscreen());
|
||||
|
||||
if (m_window.is_blocked_by_modal_window())
|
||||
return;
|
||||
|
||||
auto& wm = WSWindowManager::the();
|
||||
if (m_window.type() != WSWindowType::Normal)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue