mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-30 08:18:49 +00:00
WindowServer: Merge WM_WindowAdded and WM_WindowStateChanged.
These events are identical, so it's silly to send both. Just broadcast window state changes everywhere instead, it doesn't matter when it was added as clients are learning about this asynchronously anyway.
This commit is contained in:
parent
329cc60a92
commit
99b98dc653
Notes:
sideshowbarker
2024-07-19 14:48:50 +09:00
Author: https://github.com/awesomekling
Commit: 99b98dc653
9 changed files with 14 additions and 97 deletions
|
@ -258,7 +258,7 @@ void GWindow::event(GEvent& event)
|
|||
return;
|
||||
}
|
||||
|
||||
if (event.type() == GEvent::WM_WindowAdded || event.type() == GEvent::WM_WindowRemoved || event.type() == GEvent::WM_WindowStateChanged)
|
||||
if (event.type() == GEvent::WM_WindowRemoved || event.type() == GEvent::WM_WindowStateChanged)
|
||||
return wm_event(static_cast<GWMEvent&>(event));
|
||||
|
||||
GObject::event(event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue