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:
Andreas Kling 2019-04-05 15:01:28 +02:00
parent 329cc60a92
commit 99b98dc653
Notes: sideshowbarker 2024-07-19 14:48:50 +09:00
9 changed files with 14 additions and 97 deletions

View file

@ -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);