summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-04 17:55:50 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-04 17:55:50 +0200
commit0069020e6c40be02416f9ee4333fc752172113ea (patch)
tree95a4bf03a6630439a5043b483c3c31209e8aafc0 /Userland/Libraries/LibGUI
parentdabfeb6dd80ec0cb053b9c087fe249c88b1a48c6 (diff)
downloadserenity-0069020e6c40be02416f9ee4333fc752172113ea.zip
WindowServer+LibGUI: Rename WindowType::MenuApplet => Applet
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/Widget.cpp2
-rw-r--r--Userland/Libraries/LibGUI/Window.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/Widget.cpp b/Userland/Libraries/LibGUI/Widget.cpp
index 2097d828ef..e201fb7f3b 100644
--- a/Userland/Libraries/LibGUI/Widget.cpp
+++ b/Userland/Libraries/LibGUI/Widget.cpp
@@ -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);
diff --git a/Userland/Libraries/LibGUI/Window.cpp b/Userland/Libraries/LibGUI/Window.cpp
index a67effb791..b05c03ad36 100644
--- a/Userland/Libraries/LibGUI/Window.cpp
+++ b/Userland/Libraries/LibGUI/Window.cpp
@@ -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();
}