mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:17:45 +00:00
Userland: Rename WindowManagerServerConnection
Rename WindowManagerServerConnection=>ConnectionToWindowManagerServer. This was done with CLion's automatic rename feature.
This commit is contained in:
parent
d88da82e28
commit
af132fdbd1
12 changed files with 41 additions and 41 deletions
|
@ -7,8 +7,8 @@
|
|||
#include "TaskbarButton.h"
|
||||
#include "WindowList.h"
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/ConnectionToWindowMangerServer.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGUI/WindowManagerServerConnection.h>
|
||||
#include <LibGUI/WindowServerConnection.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
@ -25,7 +25,7 @@ TaskbarButton::~TaskbarButton()
|
|||
|
||||
void TaskbarButton::context_menu_event(GUI::ContextMenuEvent&)
|
||||
{
|
||||
GUI::WindowManagerServerConnection::the().async_popup_window_menu(
|
||||
GUI::ConnectionToWindowMangerServer::the().async_popup_window_menu(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
screen_relative_rect().location());
|
||||
|
@ -33,7 +33,7 @@ void TaskbarButton::context_menu_event(GUI::ContextMenuEvent&)
|
|||
|
||||
void TaskbarButton::update_taskbar_rect()
|
||||
{
|
||||
GUI::WindowManagerServerConnection::the().async_set_window_taskbar_rect(
|
||||
GUI::ConnectionToWindowMangerServer::the().async_set_window_taskbar_rect(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
screen_relative_rect());
|
||||
|
@ -41,7 +41,7 @@ void TaskbarButton::update_taskbar_rect()
|
|||
|
||||
void TaskbarButton::clear_taskbar_rect()
|
||||
{
|
||||
GUI::WindowManagerServerConnection::the().async_set_window_taskbar_rect(
|
||||
GUI::ConnectionToWindowMangerServer::the().async_set_window_taskbar_rect(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
{});
|
||||
|
|
|
@ -13,13 +13,13 @@
|
|||
#include <LibCore/StandardPaths.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Button.h>
|
||||
#include <LibGUI/ConnectionToWindowMangerServer.h>
|
||||
#include <LibGUI/Desktop.h>
|
||||
#include <LibGUI/Frame.h>
|
||||
#include <LibGUI/Icon.h>
|
||||
#include <LibGUI/Menu.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGUI/Window.h>
|
||||
#include <LibGUI/WindowManagerServerConnection.h>
|
||||
#include <LibGUI/WindowServerConnection.h>
|
||||
#include <LibGfx/FontDatabase.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
@ -105,7 +105,7 @@ TaskbarWindow::~TaskbarWindow()
|
|||
|
||||
void TaskbarWindow::show_desktop_button_clicked(unsigned)
|
||||
{
|
||||
GUI::WindowManagerServerConnection::the().async_toggle_show_desktop();
|
||||
GUI::ConnectionToWindowMangerServer::the().async_toggle_show_desktop();
|
||||
}
|
||||
|
||||
void TaskbarWindow::on_screen_rects_change(const Vector<Gfx::IntRect, 4>& rects, size_t main_screen_index)
|
||||
|
@ -124,7 +124,7 @@ void TaskbarWindow::update_applet_area()
|
|||
return;
|
||||
main_widget()->do_layout();
|
||||
auto new_rect = Gfx::IntRect({}, m_applet_area_size).centered_within(m_applet_area_container->screen_relative_rect());
|
||||
GUI::WindowManagerServerConnection::the().async_set_applet_area_position(new_rect.location());
|
||||
GUI::ConnectionToWindowMangerServer::the().async_set_applet_area_position(new_rect.location());
|
||||
}
|
||||
|
||||
NonnullRefPtr<GUI::Button> TaskbarWindow::create_button(const WindowIdentifier& identifier)
|
||||
|
@ -151,9 +151,9 @@ void TaskbarWindow::add_window_button(::Window& window, const WindowIdentifier&
|
|||
// false because window is the modal window's owner (which is not
|
||||
// active)
|
||||
if (window->is_minimized() || !button->is_checked()) {
|
||||
GUI::WindowManagerServerConnection::the().async_set_active_window(identifier.client_id(), identifier.window_id());
|
||||
GUI::ConnectionToWindowMangerServer::the().async_set_active_window(identifier.client_id(), identifier.window_id());
|
||||
} else {
|
||||
GUI::WindowManagerServerConnection::the().async_set_window_minimized(identifier.client_id(), identifier.window_id(), true);
|
||||
GUI::ConnectionToWindowMangerServer::the().async_set_window_minimized(identifier.client_id(), identifier.window_id(), true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
#include <LibDesktop/Launcher.h>
|
||||
#include <LibGUI/ActionGroup.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/ConnectionToWindowMangerServer.h>
|
||||
#include <LibGUI/Menu.h>
|
||||
#include <LibGUI/WindowManagerServerConnection.h>
|
||||
#include <LibGUI/WindowServerConnection.h>
|
||||
#include <LibMain/Main.h>
|
||||
#include <WindowServer/Window.h>
|
||||
|
@ -49,7 +49,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd proc exec rpath unix"));
|
||||
|
||||
GUI::WindowManagerServerConnection::the();
|
||||
GUI::ConnectionToWindowMangerServer::the();
|
||||
Desktop::Launcher::ensure_connection();
|
||||
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd proc exec rpath"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue