mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
WindowServer+LibGUI: Rename WindowType::MenuApplet => Applet
This commit is contained in:
parent
dabfeb6dd8
commit
0069020e6c
13 changed files with 17 additions and 17 deletions
|
@ -602,7 +602,7 @@ Gfx::IntRect Widget::window_relative_rect() const
|
|||
|
||||
Gfx::IntRect Widget::screen_relative_rect() const
|
||||
{
|
||||
auto window_position = window()->window_type() == WindowType::MenuApplet
|
||||
auto window_position = window()->window_type() == WindowType::Applet
|
||||
? window()->applet_rect_on_screen().location()
|
||||
: window()->rect().location();
|
||||
return window_relative_rect().translated(window_position);
|
||||
|
|
|
@ -237,7 +237,7 @@ String Window::title() const
|
|||
|
||||
Gfx::IntRect Window::applet_rect_on_screen() const
|
||||
{
|
||||
VERIFY(m_window_type == WindowType::MenuApplet);
|
||||
VERIFY(m_window_type == WindowType::Applet);
|
||||
return WindowServerConnection::the().send_sync<Messages::WindowServer::GetAppletRectOnScreen>(m_window_id)->rect();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue