1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 18:05:08 +00:00

WindowServer: More event -> message renaming.

This commit is contained in:
Andreas Kling 2019-01-26 05:35:45 +01:00
parent bba21adae3
commit 244d5bcce1
9 changed files with 78 additions and 78 deletions

View file

@ -145,7 +145,7 @@ int Process::gui$invalidate_window(int window_id, const GUI_Rect* a_rect)
Rect rect;
if (a_rect)
rect = *a_rect;
WSMessageLoop::the().post_event(&window, make<WSPaintEvent>(rect));
WSMessageLoop::the().post_message(&window, make<WSPaintEvent>(rect));
WSMessageLoop::the().server_process().request_wakeup();
return 0;
}
@ -169,7 +169,7 @@ int Process::gui$notify_paint_finished(int window_id, const GUI_Rect* a_rect)
Rect rect;
if (a_rect)
rect = *a_rect;
WSMessageLoop::the().post_event(&window, make<WSWindowInvalidationEvent>(rect));
WSMessageLoop::the().post_message(&window, make<WSWindowInvalidationEvent>(rect));
WSMessageLoop::the().server_process().request_wakeup();
return 0;
}
@ -207,7 +207,7 @@ int Process::gui$set_window_title(int window_id, const char* title, size_t size)
return -EBADWINDOW;
auto& window = *(*it).value;
String new_title(title, size);
WSMessageLoop::the().post_event(&window, make<WSSetWindowTitle>(move(new_title)));
WSMessageLoop::the().post_message(&window, make<WSSetWindowTitle>(move(new_title)));
WSMessageLoop::the().server_process().request_wakeup();
return 0;
}
@ -240,7 +240,7 @@ int Process::gui$set_window_rect(int window_id, const GUI_Rect* rect)
return -EBADWINDOW;
auto& window = *(*it).value;
Rect new_rect = *rect;
WSMessageLoop::the().post_event(&window, make<WSSetWindowRect>(new_rect));
WSMessageLoop::the().post_message(&window, make<WSSetWindowRect>(new_rect));
WSMessageLoop::the().server_process().request_wakeup();
return 0;
}