1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibGUI+Taskbar+WindowServer: Prevent minimization when blocked

This was intentionally enabled with WindowModes as a new Taskbar
convenience, but on second thought, it doesn't add up visually.

Taskbar buttons show blockers' context menus when available,
which is a bit confusing when the window isn't visible. The
modeless window's disabled context menu options and inactive title
bar also contradict the button. So, this patch reenables the
restriction for now. Blocking modals you don't want to answer to
immediately can still be tucked away on another workspace.
This commit is contained in:
thankyouverycool 2022-08-25 14:03:49 -04:00 committed by Andreas Kling
parent 18b111b802
commit d815f659cc
7 changed files with 18 additions and 8 deletions

View file

@ -39,6 +39,9 @@ public:
void set_active(bool active) { m_active = active; }
bool is_active() const { return m_active; }
void set_blocked(bool blocked) { m_blocked = blocked; }
bool is_blocked() const { return m_blocked; }
void set_minimized(bool minimized) { m_minimized = minimized; }
bool is_minimized() const { return m_minimized; }
@ -72,6 +75,7 @@ private:
unsigned m_workspace_row { 0 };
unsigned m_workspace_column { 0 };
bool m_active { false };
bool m_blocked { false };
bool m_minimized { false };
Optional<int> m_progress;
};