mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 18:05:07 +00:00
LibGfx: Move StandardCursor enum to LibGfx
This enum existed both in LibGUI and WindowServer which was silly and error-prone.
This commit is contained in:
parent
c063a02979
commit
0f9be82826
23 changed files with 127 additions and 111 deletions
|
@ -93,7 +93,7 @@ void Window::show()
|
|||
|
||||
auto* parent_window = find_parent_window();
|
||||
|
||||
m_override_cursor = StandardCursor::None;
|
||||
m_override_cursor = Gfx::StandardCursor::None;
|
||||
auto response = WindowServerConnection::the().send_sync<Messages::WindowServer::CreateWindow>(
|
||||
m_rect_when_windowless,
|
||||
!m_moved_by_client,
|
||||
|
@ -138,7 +138,7 @@ void Window::server_did_destroy()
|
|||
m_pending_paint_event_rects.clear();
|
||||
m_back_bitmap = nullptr;
|
||||
m_front_bitmap = nullptr;
|
||||
m_override_cursor = StandardCursor::None;
|
||||
m_override_cursor = Gfx::StandardCursor::None;
|
||||
}
|
||||
|
||||
void Window::hide()
|
||||
|
@ -226,7 +226,7 @@ void Window::set_window_type(WindowType window_type)
|
|||
m_window_type = window_type;
|
||||
}
|
||||
|
||||
void Window::set_override_cursor(StandardCursor cursor)
|
||||
void Window::set_override_cursor(Gfx::StandardCursor cursor)
|
||||
{
|
||||
if (!is_visible())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue