mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
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.
This commit is contained in:
parent
d6c6880674
commit
f07efa1640
Notes:
sideshowbarker
2024-07-18 19:29:23 +09:00
Author: https://github.com/awesomekling
Commit: f07efa1640
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
||||||
#include "RunWindow.h"
|
#include "RunWindow.h"
|
||||||
#include <AK/StringBuilder.h>
|
#include <AK/StringBuilder.h>
|
||||||
#include <LibGUI/Application.h>
|
#include <LibGUI/Application.h>
|
||||||
|
#include <LibGUI/Desktop.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
|
@ -45,6 +46,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
auto window = RunWindow::construct();
|
auto window = RunWindow::construct();
|
||||||
|
|
||||||
|
window->move_to(12, GUI::Desktop::the().rect().bottom() - GUI::Desktop::the().taskbar_height() - 12 - window->height());
|
||||||
window->show();
|
window->show();
|
||||||
|
|
||||||
return app->exec();
|
return app->exec();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue