mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
WindowServer: Center the mouse cursor on startup
The code was already trying to do this, but it was centering inside the screen rect before we had a screen rect. :^)
This commit is contained in:
parent
db353a06e5
commit
d0799f3648
Notes:
sideshowbarker
2024-07-19 11:32:23 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d0799f36483
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,6 @@ WSScreen::WSScreen(unsigned desired_width, unsigned desired_height)
|
|||
{
|
||||
ASSERT(!s_the);
|
||||
s_the = this;
|
||||
m_cursor_location = rect().center();
|
||||
m_framebuffer_fd = open("/dev/fb0", O_RDWR);
|
||||
ASSERT(m_framebuffer_fd >= 0);
|
||||
|
||||
|
@ -29,6 +28,7 @@ WSScreen::WSScreen(unsigned desired_width, unsigned desired_height)
|
|||
}
|
||||
|
||||
set_resolution(desired_width, desired_height);
|
||||
m_cursor_location = rect().center();
|
||||
}
|
||||
|
||||
WSScreen::~WSScreen()
|
||||
|
|
Loading…
Add table
Reference in a new issue