1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

WindowServer+LibGUI: Send the window size along with Paint server messages.

This way GWindow doesn't need to do synchronous IPC to fetch the appropriate
size for the window's backing store. This is mostly only relevant during
live resize.
This commit is contained in:
Andreas Kling 2019-02-26 10:50:25 +01:00
parent 1effe70543
commit ae90043424
5 changed files with 12 additions and 5 deletions

View file

@ -119,7 +119,7 @@ void GEventLoop::handle_paint_event(const WSAPI_ServerMessage& event, GWindow& w
#ifdef GEVENTLOOP_DEBUG
dbgprintf("WID=%x Paint [%d,%d %dx%d]\n", event.window_id, event.paint.rect.location.x, event.paint.rect.location.y, event.paint.rect.size.width, event.paint.rect.size.height);
#endif
post_event(window, make<GPaintEvent>(event.paint.rect));
post_event(window, make<GPaintEvent>(event.paint.rect, event.paint.window_size));
}
void GEventLoop::handle_resize_event(const WSAPI_ServerMessage& event, GWindow& window)