diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-17 23:27:00 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-17 23:27:00 +0200 |
commit | f07efa16409a1ded324aa2f987d4749657d88264 (patch) | |
tree | 64d0597b69ba6c39d101586b841726d358a8c6a7 /Userland/Applications/Run | |
parent | d6c688067452ea0d0923edbb80e543b4dd5556f7 (diff) | |
download | serenity-f07efa16409a1ded324aa2f987d4749657d88264.zip |
Run: Put the window in the bottom left of the desktop
This makes a lot more sense now that it's spawned by the start button.
Diffstat (limited to 'Userland/Applications/Run')
-rw-r--r-- | Userland/Applications/Run/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/Run/main.cpp b/Userland/Applications/Run/main.cpp index 3513da9d11..049124c31e 100644 --- a/Userland/Applications/Run/main.cpp +++ b/Userland/Applications/Run/main.cpp @@ -27,6 +27,7 @@ #include "RunWindow.h" #include <AK/StringBuilder.h> #include <LibGUI/Application.h> +#include <LibGUI/Desktop.h> #include <unistd.h> int main(int argc, char** argv) @@ -45,6 +46,7 @@ int main(int argc, char** argv) auto window = RunWindow::construct(); + window->move_to(12, GUI::Desktop::the().rect().bottom() - GUI::Desktop::the().taskbar_height() - 12 - window->height()); window->show(); return app->exec(); |