mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
WindowServer: Introduce a WM event mask so Taskbar can ignore window rects.
Taskbar was waking up to do nothing every time a window rect changed.
This commit is contained in:
parent
ab94a6be00
commit
49e7ffc06a
10 changed files with 97 additions and 3 deletions
|
@ -76,6 +76,17 @@ void TaskbarWindow::wm_event(GWMEvent& event)
|
|||
update();
|
||||
break;
|
||||
}
|
||||
case GEvent::WM_WindowRectChanged: {
|
||||
#ifdef EVENT_DEBUG
|
||||
auto& changed_event = static_cast<GWMWindowRectChangedEvent&>(event);
|
||||
dbgprintf("WM_WindowRectChanged: client_id=%d, window_id=%d, rect=%s\n",
|
||||
changed_event.client_id(),
|
||||
changed_event.window_id(),
|
||||
changed_event.rect().to_string().characters()
|
||||
);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
case GEvent::WM_WindowIconChanged: {
|
||||
auto& changed_event = static_cast<GWMWindowIconChangedEvent&>(event);
|
||||
#ifdef EVENT_DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue