mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:58:12 +00:00
Applets: Rename DesktopPicker => WorkspacePicker
This is consistent with the rest of the system.
This commit is contained in:
parent
03b6ff2bf0
commit
51484bec82
8 changed files with 17 additions and 17 deletions
39
Userland/Applets/WorkspacePicker/main.cpp
Normal file
39
Userland/Applets/WorkspacePicker/main.cpp
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Peter Elliott <pelliott@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include "DesktopStatusWindow.h"
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGUI/WindowManagerServerConnection.h>
|
||||
#include <WindowServer/Window.h>
|
||||
#include <serenity.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio recvfd sendfd rpath unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
// We need to obtain the WM connection here as well before the pledge shortening.
|
||||
GUI::WindowManagerServerConnection::the();
|
||||
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto window = DesktopStatusWindow::construct();
|
||||
window->set_title("WorkspacePicker");
|
||||
window->resize(28, 16);
|
||||
window->show();
|
||||
window->make_window_manager(WindowServer::WMEventMask::WorkspaceChanges);
|
||||
|
||||
return app->exec();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue