diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-18 00:39:11 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-18 00:39:11 +0200 |
commit | c931eaa22c0890539867399f161c64abdb85a4b8 (patch) | |
tree | 1c5edf3aa8042b12ee810e6d4e63414eeb4d2854 /LibGUI/GEventLoop.cpp | |
parent | c4c7f224d55f3c97b7385f2ce505c9a3d1d02183 (diff) | |
download | serenity-c931eaa22c0890539867399f161c64abdb85a4b8.zip |
WindowServer: Generate a separate WM event for window icon changes.
Diffstat (limited to 'LibGUI/GEventLoop.cpp')
-rw-r--r-- | LibGUI/GEventLoop.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/LibGUI/GEventLoop.cpp b/LibGUI/GEventLoop.cpp index 895bf0a77c..b14c621e91 100644 --- a/LibGUI/GEventLoop.cpp +++ b/LibGUI/GEventLoop.cpp @@ -174,7 +174,9 @@ void GEventLoop::handle_wm_event(const WSAPI_ServerMessage& event, GWindow& wind dbgprintf("GEventLoop: handle_wm_event: %d\n", (int)event.type); #endif if (event.type == WSAPI_ServerMessage::WM_WindowStateChanged) - return post_event(window, make<GWMWindowStateChangedEvent>(event.wm.client_id, event.wm.window_id, String(event.text, event.text_length), event.wm.rect, event.wm.is_active, (GWindowType)event.wm.window_type, event.wm.is_minimized, String(event.wm.icon_path, event.wm.icon_path_length))); + return post_event(window, make<GWMWindowStateChangedEvent>(event.wm.client_id, event.wm.window_id, String(event.text, event.text_length), event.wm.rect, event.wm.is_active, (GWindowType)event.wm.window_type, event.wm.is_minimized)); + if (event.type == WSAPI_ServerMessage::WM_WindowIconChanged) + return post_event(window, make<GWMWindowIconChangedEvent>(event.wm.client_id, event.wm.window_id, String(event.text, event.text_length))); if (event.type == WSAPI_ServerMessage::WM_WindowRemoved) return post_event(window, make<GWMWindowRemovedEvent>(event.wm.client_id, event.wm.window_id)); ASSERT_NOT_REACHED(); @@ -277,6 +279,7 @@ void GEventLoop::process_unprocessed_messages() break; case WSAPI_ServerMessage::Type::WM_WindowRemoved: case WSAPI_ServerMessage::Type::WM_WindowStateChanged: + case WSAPI_ServerMessage::Type::WM_WindowIconChanged: handle_wm_event(event, *window); break; default: |