1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

wsctl: Port to LibMain

This commit is contained in:
mjz19910 2022-01-03 21:17:27 -07:00 committed by Brian Gianforcaro
parent d4748c608c
commit 92493b210a
2 changed files with 5 additions and 6 deletions

View file

@ -8,17 +8,16 @@
#include <LibGUI/Application.h>
#include <LibGUI/WindowServerConnection.h>
int main(int argc, char** argv)
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
auto app = GUI::Application::construct(argc, argv);
auto app = GUI::Application::construct(arguments);
int flash_flush = -1;
Core::ArgsParser args_parser;
args_parser.add_option(flash_flush, "Flash flush (repaint) rectangles", "flash-flush", 'f', "0/1");
args_parser.parse(argc, argv);
args_parser.parse(arguments);
if (flash_flush != -1) {
if (flash_flush != -1)
GUI::WindowServerConnection::the().async_set_flash_flush(flash_flush);
}
return 0;
}