mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
WorkspacePicker: Allow opening workspace settings via a context menu
Previously you had to open Display Settings and navigate to the "Workspaces" tab in order to edit workspace settings. This patch adds a context menu shortcut to the same place.
This commit is contained in:
parent
c3eaa73113
commit
2121760700
2 changed files with 37 additions and 3 deletions
|
@ -15,7 +15,7 @@
|
|||
|
||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd rpath unix"));
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd rpath proc exec unix"));
|
||||
|
||||
auto app = TRY(GUI::Application::try_create(arguments));
|
||||
app->set_quit_when_last_window_deleted(false);
|
||||
|
@ -23,7 +23,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
// We need to obtain the WM connection here as well before the pledge shortening.
|
||||
GUI::ConnectionToWindowManagerServer::the();
|
||||
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd rpath"));
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd rpath proc exec"));
|
||||
|
||||
TRY(Core::System::unveil("/res", "r"));
|
||||
TRY(Core::System::unveil("/bin/DisplaySettings", "x"));
|
||||
|
||||
auto window = TRY(DesktopStatusWindow::try_create());
|
||||
window->set_title("WorkspacePicker");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue