From 82c09653aa0abd42a1a5fffec824acadde1db8d1 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 2 Sep 2022 11:18:15 +0300 Subject: [PATCH] Move xcursortheme.{h,cpp} to utils/ utils/ seems like a better place for this helper. --- autotests/integration/pointer_input.cpp | 2 +- src/CMakeLists.txt | 1 - src/pointer_input.h | 2 +- src/utils/CMakeLists.txt | 1 + src/{ => utils}/xcursortheme.cpp | 0 src/{ => utils}/xcursortheme.h | 0 6 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => utils}/xcursortheme.cpp (100%) rename src/{ => utils}/xcursortheme.h (100%) diff --git a/autotests/integration/pointer_input.cpp b/autotests/integration/pointer_input.cpp index 88398ff488..f5f2f0c3dc 100644 --- a/autotests/integration/pointer_input.cpp +++ b/autotests/integration/pointer_input.cpp @@ -17,13 +17,13 @@ #include "pointer_input.h" #include "screenedge.h" #include "screens.h" +#include "utils/xcursortheme.h" #include "virtualdesktops.h" #include "wayland/clientconnection.h" #include "wayland/seat_interface.h" #include "wayland_server.h" #include "window.h" #include "workspace.h" -#include "xcursortheme.h" #include #include diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7b35e6752c..268047156a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -158,7 +158,6 @@ target_sources(kwin PRIVATE x11eventfilter.cpp x11syncmanager.cpp x11window.cpp - xcursortheme.cpp xdgactivationv1.cpp xdgshellintegration.cpp xdgshellwindow.cpp diff --git a/src/pointer_input.h b/src/pointer_input.h index d4be6f5897..bf562d89d4 100644 --- a/src/pointer_input.h +++ b/src/pointer_input.h @@ -13,7 +13,7 @@ #include "cursor.h" #include "input.h" -#include "xcursortheme.h" +#include "utils/xcursortheme.h" #include #include diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt index f333817dd2..32d1afcb8e 100644 --- a/src/utils/CMakeLists.txt +++ b/src/utils/CMakeLists.txt @@ -9,4 +9,5 @@ target_sources(kwin PRIVATE subsurfacemonitor.cpp udev.cpp xcbutils.cpp + xcursortheme.cpp ) diff --git a/src/xcursortheme.cpp b/src/utils/xcursortheme.cpp similarity index 100% rename from src/xcursortheme.cpp rename to src/utils/xcursortheme.cpp diff --git a/src/xcursortheme.h b/src/utils/xcursortheme.h similarity index 100% rename from src/xcursortheme.h rename to src/utils/xcursortheme.h