/* * Copyright (c) 2021, Peter Elliott * * SPDX-License-Identifier: BSD-2-Clause */ #include "DesktopStatusWindow.h" #include #include #include #include #include #include ErrorOr serenity_main(Main::Arguments arguments) { TRY(Core::System::pledge("stdio recvfd sendfd rpath unix")); auto app = TRY(GUI::Application::try_create(arguments)); // We need to obtain the WM connection here as well before the pledge shortening. GUI::ConnectionToWindowMangerServer::the(); TRY(Core::System::pledge("stdio recvfd sendfd rpath")); auto window = TRY(DesktopStatusWindow::try_create()); window->set_title("WorkspacePicker"); window->resize(28, 16); window->show(); window->make_window_manager(WindowServer::WMEventMask::WorkspaceChanges); return app->exec(); }