1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

Userland: Rename WindowServerConnection=>ConnectionToWindowServer

This was done with CLion's automatic rename feature.
This commit is contained in:
Itamar 2022-02-25 12:39:33 +02:00 committed by Andreas Kling
parent af132fdbd1
commit 935d023967
43 changed files with 201 additions and 201 deletions

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibGUI/ConnectionToWindowServer.h>
#include <LibGUI/MouseTracker.h>
#include <LibGUI/WindowServerConnection.h>
namespace GUI {
@ -14,7 +14,7 @@ MouseTracker::List MouseTracker::s_trackers;
MouseTracker::MouseTracker()
{
if (s_trackers.is_empty()) {
WindowServerConnection::the().async_set_global_mouse_tracking(true);
ConnectionToWindowServer::the().async_set_global_mouse_tracking(true);
}
s_trackers.append(*this);
}
@ -22,11 +22,11 @@ MouseTracker::~MouseTracker()
{
m_list_node.remove();
if (s_trackers.is_empty()) {
WindowServerConnection::the().async_set_global_mouse_tracking(false);
ConnectionToWindowServer::the().async_set_global_mouse_tracking(false);
}
}
void MouseTracker::track_mouse_move(Badge<WindowServerConnection>, Gfx::IntPoint const& point)
void MouseTracker::track_mouse_move(Badge<ConnectionToWindowServer>, Gfx::IntPoint const& point)
{
for (auto& tracker : s_trackers) {
tracker.track_mouse_move(point);