summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/ConnectionToWindowManagerServer.cpp
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-08-25 14:03:49 -0400
committerAndreas Kling <kling@serenityos.org>2022-08-26 12:48:05 +0200
commitd815f659cc382656e11e9d28aeb4a2bbcf1e9f85 (patch)
tree830eebe6aee38c579eb2d4a04e5143154ff94b7b /Userland/Libraries/LibGUI/ConnectionToWindowManagerServer.cpp
parent18b111b802751226559ac6e530fbede8104e47c1 (diff)
downloadserenity-d815f659cc382656e11e9d28aeb4a2bbcf1e9f85.zip
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.
Diffstat (limited to 'Userland/Libraries/LibGUI/ConnectionToWindowManagerServer.cpp')
-rw-r--r--Userland/Libraries/LibGUI/ConnectionToWindowManagerServer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/ConnectionToWindowManagerServer.cpp b/Userland/Libraries/LibGUI/ConnectionToWindowManagerServer.cpp
index 1d1c6a7291..d6b0cd9148 100644
--- a/Userland/Libraries/LibGUI/ConnectionToWindowManagerServer.cpp
+++ b/Userland/Libraries/LibGUI/ConnectionToWindowManagerServer.cpp
@@ -19,11 +19,11 @@ ConnectionToWindowManagerServer& ConnectionToWindowManagerServer::the()
}
void ConnectionToWindowManagerServer::window_state_changed(i32 wm_id, i32 client_id, i32 window_id,
- u32 workspace_row, u32 workspace_column, bool is_active, bool is_minimized, bool is_frameless,
+ u32 workspace_row, u32 workspace_column, bool is_active, bool is_blocked, bool is_minimized, bool is_frameless,
i32 window_type, String const& title, Gfx::IntRect const& rect, Optional<i32> const& progress)
{
if (auto* window = Window::from_window_id(wm_id))
- Core::EventLoop::current().post_event(*window, make<WMWindowStateChangedEvent>(client_id, window_id, title, rect, workspace_row, workspace_column, is_active, static_cast<WindowType>(window_type), is_minimized, is_frameless, progress));
+ Core::EventLoop::current().post_event(*window, make<WMWindowStateChangedEvent>(client_id, window_id, title, rect, workspace_row, workspace_column, is_active, is_blocked, static_cast<WindowType>(window_type), is_minimized, is_frameless, progress));
}
void ConnectionToWindowManagerServer::applet_area_size_changed(i32 wm_id, Gfx::IntSize const& size)