From e2a393ce2d36c99bcd265e44982bda6a4db304bc Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 18 Jan 2022 10:35:52 +0200 Subject: [PATCH] Move utils.h file to utils directory --- autotests/test_x11_timestamp_update.cpp | 2 +- src/CMakeLists.txt | 1 - src/abstract_wayland_output.h | 2 +- src/backends/drm/egl_gbm_backend.h | 2 +- src/backends/drm/scene_qpainter_drm_backend.h | 2 +- src/backends/wayland/egl_wayland_backend.h | 2 +- src/backends/wayland/scene_qpainter_wayland_backend.h | 2 +- .../x11/standalone/effects_mouse_interception_x11_filter.cpp | 2 +- src/backends/x11/standalone/effects_x11.cpp | 2 +- src/backends/x11/standalone/eglbackend.h | 2 +- src/backends/x11/standalone/glxbackend.h | 2 +- src/backends/x11/standalone/overlaywindow_x11.cpp | 2 +- src/backends/x11/standalone/x11cursor.cpp | 2 +- src/client_machine.cpp | 2 +- src/colordevice.cpp | 2 +- src/colormanager.cpp | 2 +- src/composite.cpp | 2 +- src/cursor.cpp | 2 +- src/decorationitem.cpp | 2 +- src/effectloader.cpp | 2 +- src/globalshortcuts.cpp | 2 +- src/group.h | 2 +- src/inputmethod.cpp | 2 +- src/item.cpp | 2 +- src/kcmkwin/kwinrules/CMakeLists.txt | 2 +- src/keyboard_input.cpp | 2 +- src/layers.cpp | 2 +- src/options.cpp | 2 +- src/outline.cpp | 2 +- .../scenes/opengl/basiceglsurfacetexture_internal.cpp | 2 +- .../scenes/opengl/basiceglsurfacetexture_wayland.cpp | 2 +- src/platformsupport/scenes/opengl/egl_dmabuf.cpp | 2 +- src/platformsupport/scenes/opengl/openglbackend.cpp | 2 +- src/platformsupport/scenes/qpainter/qpainterbackend.cpp | 2 +- .../scenes/qpainter/qpaintersurfacetexture_wayland.cpp | 2 +- src/pluginmanager.cpp | 2 +- src/plugins/screencast/screencaststream.cpp | 2 +- src/renderloop.cpp | 2 +- src/rules.h | 2 +- src/scene.h | 2 +- src/scenes/opengl/scene_opengl.cpp | 2 +- src/screenedge.cpp | 2 +- src/screens.cpp | 2 +- src/session_consolekit.cpp | 2 +- src/session_logind.cpp | 2 +- src/tabbox/tabbox.h | 2 +- src/toplevel.h | 2 +- src/udev.cpp | 2 +- src/unmanaged.cpp | 2 +- src/utils/CMakeLists.txt | 1 + src/{utils.cpp => utils/common.cpp} | 2 +- src/{utils.h => utils/common.h} | 5 +---- src/utils/xcbutils.cpp | 2 +- src/workspace.h | 2 +- src/x11syncmanager.cpp | 2 +- src/xdgactivationv1.cpp | 2 +- src/xkb.cpp | 2 +- src/xwl/xwayland.cpp | 2 +- 58 files changed, 57 insertions(+), 60 deletions(-) rename src/{utils.cpp => utils/common.cpp} (99%) rename src/{utils.h => utils/common.h} (99%) diff --git a/autotests/test_x11_timestamp_update.cpp b/autotests/test_x11_timestamp_update.cpp index 41830b172c..624f6da8d3 100644 --- a/autotests/test_x11_timestamp_update.cpp +++ b/autotests/test_x11_timestamp_update.cpp @@ -13,7 +13,7 @@ #include #include "main.h" -#include "utils.h" +#include "utils/common.h" namespace KWin { diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 483c583886..79e88d8dd4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -131,7 +131,6 @@ target_sources(kwin PRIVATE udev.cpp unmanaged.cpp useractions.cpp - utils.cpp virtualdesktops.cpp virtualdesktopsdbustypes.cpp virtualkeyboard_dbus.cpp diff --git a/src/abstract_wayland_output.h b/src/abstract_wayland_output.h index 72d9f2912d..bbc2311946 100644 --- a/src/abstract_wayland_output.h +++ b/src/abstract_wayland_output.h @@ -10,7 +10,7 @@ #define KWIN_ABSTRACT_WAYLAND_OUTPUT_H #include "abstract_output.h" -#include "utils.h" +#include "utils/common.h" #include "renderloop.h" #include diff --git a/src/backends/drm/egl_gbm_backend.h b/src/backends/drm/egl_gbm_backend.h index 5b4773e861..b7633fe70b 100644 --- a/src/backends/drm/egl_gbm_backend.h +++ b/src/backends/drm/egl_gbm_backend.h @@ -9,7 +9,7 @@ #ifndef KWIN_EGL_GBM_BACKEND_H #define KWIN_EGL_GBM_BACKEND_H #include "abstract_egl_backend.h" -#include "utils.h" +#include "utils/common.h" #include diff --git a/src/backends/drm/scene_qpainter_drm_backend.h b/src/backends/drm/scene_qpainter_drm_backend.h index 9168b56732..88a6e9b259 100644 --- a/src/backends/drm/scene_qpainter_drm_backend.h +++ b/src/backends/drm/scene_qpainter_drm_backend.h @@ -9,7 +9,7 @@ #ifndef KWIN_SCENE_QPAINTER_DRM_BACKEND_H #define KWIN_SCENE_QPAINTER_DRM_BACKEND_H #include "qpainterbackend.h" -#include "utils.h" +#include "utils/common.h" #include #include diff --git a/src/backends/wayland/egl_wayland_backend.h b/src/backends/wayland/egl_wayland_backend.h index 661b6ad1a3..cbc9bb5c03 100644 --- a/src/backends/wayland/egl_wayland_backend.h +++ b/src/backends/wayland/egl_wayland_backend.h @@ -10,7 +10,7 @@ #ifndef KWIN_EGL_WAYLAND_BACKEND_H #define KWIN_EGL_WAYLAND_BACKEND_H #include "abstract_egl_backend.h" -#include "utils.h" +#include "utils/common.h" // wayland #include diff --git a/src/backends/wayland/scene_qpainter_wayland_backend.h b/src/backends/wayland/scene_qpainter_wayland_backend.h index c749d2f7c9..a46b3a253c 100644 --- a/src/backends/wayland/scene_qpainter_wayland_backend.h +++ b/src/backends/wayland/scene_qpainter_wayland_backend.h @@ -11,7 +11,7 @@ #define KWIN_SCENE_QPAINTER_WAYLAND_BACKEND_H #include "qpainterbackend.h" -#include "utils.h" +#include "utils/common.h" #include #include diff --git a/src/backends/x11/standalone/effects_mouse_interception_x11_filter.cpp b/src/backends/x11/standalone/effects_mouse_interception_x11_filter.cpp index 0f4b5119b9..e9699517a3 100644 --- a/src/backends/x11/standalone/effects_mouse_interception_x11_filter.cpp +++ b/src/backends/x11/standalone/effects_mouse_interception_x11_filter.cpp @@ -8,7 +8,7 @@ */ #include "effects_mouse_interception_x11_filter.h" #include "effects.h" -#include "utils.h" +#include "utils/common.h" #include diff --git a/src/backends/x11/standalone/effects_x11.cpp b/src/backends/x11/standalone/effects_x11.cpp index 7faf5e9dfa..36e9d02d0a 100644 --- a/src/backends/x11/standalone/effects_x11.cpp +++ b/src/backends/x11/standalone/effects_x11.cpp @@ -12,7 +12,7 @@ #include "cursor.h" #include "screenedge.h" #include "screens.h" -#include "utils.h" +#include "utils/common.h" #include "workspace.h" #include diff --git a/src/backends/x11/standalone/eglbackend.h b/src/backends/x11/standalone/eglbackend.h index d802540dba..9bb0c1261c 100644 --- a/src/backends/x11/standalone/eglbackend.h +++ b/src/backends/x11/standalone/eglbackend.h @@ -8,7 +8,7 @@ #include "eglonxbackend.h" #include "openglsurfacetexture_x11.h" -#include "utils.h" +#include "utils/common.h" #include #include diff --git a/src/backends/x11/standalone/glxbackend.h b/src/backends/x11/standalone/glxbackend.h index c608c95398..28c236c717 100644 --- a/src/backends/x11/standalone/glxbackend.h +++ b/src/backends/x11/standalone/glxbackend.h @@ -11,7 +11,7 @@ #include "openglbackend.h" #include "openglsurfacetexture_x11.h" #include "x11eventfilter.h" -#include "utils.h" +#include "utils/common.h" #include #include diff --git a/src/backends/x11/standalone/overlaywindow_x11.cpp b/src/backends/x11/standalone/overlaywindow_x11.cpp index 60f4630dc6..c257353273 100644 --- a/src/backends/x11/standalone/overlaywindow_x11.cpp +++ b/src/backends/x11/standalone/overlaywindow_x11.cpp @@ -13,7 +13,7 @@ #include "composite.h" #include "scene.h" #include "screens.h" -#include "utils.h" +#include "utils/common.h" #include "utils/xcbutils.h" #include diff --git a/src/backends/x11/standalone/x11cursor.cpp b/src/backends/x11/standalone/x11cursor.cpp index 3675fb1d08..d75b3faa0a 100644 --- a/src/backends/x11/standalone/x11cursor.cpp +++ b/src/backends/x11/standalone/x11cursor.cpp @@ -9,7 +9,7 @@ #include "x11cursor.h" #include "input.h" #include "keyboard_input.h" -#include "utils.h" +#include "utils/common.h" #include "utils/xcbutils.h" #include "xfixes_cursor_event_filter.h" diff --git a/src/client_machine.cpp b/src/client_machine.cpp index 3eba92c72c..01d9432062 100644 --- a/src/client_machine.cpp +++ b/src/client_machine.cpp @@ -8,7 +8,7 @@ */ // own #include "client_machine.h" -#include "utils.h" +#include "utils/common.h" // KF5 #include // Qt diff --git a/src/colordevice.cpp b/src/colordevice.cpp index 585b867dec..cd3460e506 100644 --- a/src/colordevice.cpp +++ b/src/colordevice.cpp @@ -6,7 +6,7 @@ #include "colordevice.h" #include "abstract_output.h" -#include "utils.h" +#include "utils/common.h" #include "3rdparty/colortemperature.h" diff --git a/src/colormanager.cpp b/src/colormanager.cpp index e618925b33..893f561797 100644 --- a/src/colormanager.cpp +++ b/src/colormanager.cpp @@ -10,7 +10,7 @@ #include "main.h" #include "platform.h" #include "session.h" -#include "utils.h" +#include "utils/common.h" namespace KWin { diff --git a/src/composite.cpp b/src/composite.cpp index 43859cf22c..048f6ecebe 100644 --- a/src/composite.cpp +++ b/src/composite.cpp @@ -28,7 +28,7 @@ #include "surfaceitem_x11.h" #include "unmanaged.h" #include "useractions.h" -#include "utils.h" +#include "utils/common.h" #include "wayland_server.h" #include "workspace.h" #include "x11syncmanager.h" diff --git a/src/cursor.cpp b/src/cursor.cpp index 8634a76579..625e570786 100644 --- a/src/cursor.cpp +++ b/src/cursor.cpp @@ -13,7 +13,7 @@ #include "keyboard_input.h" #include "main.h" #include "platform.h" -#include "utils.h" +#include "utils/common.h" #include "utils/xcbutils.h" #include "abstract_output.h" #include "composite.h" diff --git a/src/decorationitem.cpp b/src/decorationitem.cpp index ec1fb00ffc..55a99bdbea 100644 --- a/src/decorationitem.cpp +++ b/src/decorationitem.cpp @@ -12,7 +12,7 @@ #include "decorations/decoratedclient.h" #include "deleted.h" #include "scene.h" -#include "utils.h" +#include "utils/common.h" #include diff --git a/src/effectloader.cpp b/src/effectloader.cpp index 9549d12dba..af48885cfc 100644 --- a/src/effectloader.cpp +++ b/src/effectloader.cpp @@ -13,7 +13,7 @@ #include #include "plugin.h" #include "scripting/scriptedeffect.h" -#include "utils.h" +#include "utils/common.h" // KDE #include #include diff --git a/src/globalshortcuts.cpp b/src/globalshortcuts.cpp index 773f93c15b..01c546909d 100644 --- a/src/globalshortcuts.cpp +++ b/src/globalshortcuts.cpp @@ -12,7 +12,7 @@ #include "gestures.h" #include "kwinglobals.h" #include "main.h" -#include "utils.h" +#include "utils/common.h" #include // KDE #include diff --git a/src/group.h b/src/group.h index f850527674..5d514173bd 100644 --- a/src/group.h +++ b/src/group.h @@ -11,7 +11,7 @@ #ifndef KWIN_GROUP_H #define KWIN_GROUP_H -#include "utils.h" +#include "utils/common.h" #include namespace KWin diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index fa166e7752..a8bcda3e1b 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -12,7 +12,7 @@ #include "input.h" #include "inputpanelv1client.h" #include "keyboard_input.h" -#include "utils.h" +#include "utils/common.h" #include "screens.h" #include "wayland_server.h" #include "workspace.h" diff --git a/src/item.cpp b/src/item.cpp index 627d8e4cb5..7e6771f02e 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -12,7 +12,7 @@ #include "renderloop.h" #include "scene.h" #include "screens.h" -#include "utils.h" +#include "utils/common.h" namespace KWin { diff --git a/src/kcmkwin/kwinrules/CMakeLists.txt b/src/kcmkwin/kwinrules/CMakeLists.txt index 2b13ed21bb..7379bb41d1 100644 --- a/src/kcmkwin/kwinrules/CMakeLists.txt +++ b/src/kcmkwin/kwinrules/CMakeLists.txt @@ -10,7 +10,7 @@ set(kwinrules_SRCS ../../backends/x11/standalone/x11cursor.cpp ../../rules.cpp ../../placement.cpp - ../../utils.cpp + ../../utils/common.cpp ../../virtualdesktopsdbustypes.cpp kwinsrc.cpp optionsmodel.cpp diff --git a/src/keyboard_input.cpp b/src/keyboard_input.cpp index f342c23797..2e0c4aee9a 100644 --- a/src/keyboard_input.cpp +++ b/src/keyboard_input.cpp @@ -16,7 +16,7 @@ #include "modifier_only_shortcuts.h" #include "screenlockerwatcher.h" #include "toplevel.h" -#include "utils.h" +#include "utils/common.h" #include "wayland_server.h" #include "workspace.h" // KWayland diff --git a/src/layers.cpp b/src/layers.cpp index e94493be8d..9824656874 100644 --- a/src/layers.cpp +++ b/src/layers.cpp @@ -64,7 +64,7 @@ */ -#include "utils.h" +#include "utils/common.h" #include "x11client.h" #include "focuschain.h" #include "netinfo.h" diff --git a/src/options.cpp b/src/options.cpp index 22ee6e895c..52769c2256 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -11,7 +11,7 @@ #include "options.h" #include "config-kwin.h" -#include "utils.h" +#include "utils/common.h" #include "platform.h" #ifndef KCMRULES diff --git a/src/outline.cpp b/src/outline.cpp index f9ae2ac960..f9ce0bacfa 100644 --- a/src/outline.cpp +++ b/src/outline.cpp @@ -14,7 +14,7 @@ #include "main.h" #include "platform.h" #include "scripting/scripting.h" -#include "utils.h" +#include "utils/common.h" // Frameworks #include // Qt diff --git a/src/platformsupport/scenes/opengl/basiceglsurfacetexture_internal.cpp b/src/platformsupport/scenes/opengl/basiceglsurfacetexture_internal.cpp index 704ddb3c7b..521224dc4d 100644 --- a/src/platformsupport/scenes/opengl/basiceglsurfacetexture_internal.cpp +++ b/src/platformsupport/scenes/opengl/basiceglsurfacetexture_internal.cpp @@ -7,7 +7,7 @@ #include "basiceglsurfacetexture_internal.h" #include "kwingltexture.h" #include "surfaceitem_internal.h" -#include "utils.h" +#include "utils/common.h" #include diff --git a/src/platformsupport/scenes/opengl/basiceglsurfacetexture_wayland.cpp b/src/platformsupport/scenes/opengl/basiceglsurfacetexture_wayland.cpp index f399f6e3c3..380b38475f 100644 --- a/src/platformsupport/scenes/opengl/basiceglsurfacetexture_wayland.cpp +++ b/src/platformsupport/scenes/opengl/basiceglsurfacetexture_wayland.cpp @@ -9,7 +9,7 @@ #include "kwineglext.h" #include "kwingltexture.h" #include "surfaceitem_wayland.h" -#include "utils.h" +#include "utils/common.h" #include #include diff --git a/src/platformsupport/scenes/opengl/egl_dmabuf.cpp b/src/platformsupport/scenes/opengl/egl_dmabuf.cpp index 9187985075..1ae2b04dd3 100644 --- a/src/platformsupport/scenes/opengl/egl_dmabuf.cpp +++ b/src/platformsupport/scenes/opengl/egl_dmabuf.cpp @@ -12,7 +12,7 @@ #include "kwineglext.h" #include "kwineglutils_p.h" -#include "utils.h" +#include "utils/common.h" #include "wayland_server.h" #include diff --git a/src/platformsupport/scenes/opengl/openglbackend.cpp b/src/platformsupport/scenes/opengl/openglbackend.cpp index e9195d62d5..c801ce663a 100644 --- a/src/platformsupport/scenes/opengl/openglbackend.cpp +++ b/src/platformsupport/scenes/opengl/openglbackend.cpp @@ -12,7 +12,7 @@ #include #include "screens.h" -#include "utils.h" +#include "utils/common.h" #include diff --git a/src/platformsupport/scenes/qpainter/qpainterbackend.cpp b/src/platformsupport/scenes/qpainter/qpainterbackend.cpp index 1a3106445f..f4e556fd65 100644 --- a/src/platformsupport/scenes/qpainter/qpainterbackend.cpp +++ b/src/platformsupport/scenes/qpainter/qpainterbackend.cpp @@ -9,7 +9,7 @@ #include "qpainterbackend.h" #include "qpaintersurfacetexture_internal.h" #include "qpaintersurfacetexture_wayland.h" -#include "utils.h" +#include "utils/common.h" #include diff --git a/src/platformsupport/scenes/qpainter/qpaintersurfacetexture_wayland.cpp b/src/platformsupport/scenes/qpainter/qpaintersurfacetexture_wayland.cpp index 8f16e3259a..d1b22e39f2 100644 --- a/src/platformsupport/scenes/qpainter/qpaintersurfacetexture_wayland.cpp +++ b/src/platformsupport/scenes/qpainter/qpaintersurfacetexture_wayland.cpp @@ -6,7 +6,7 @@ #include "qpaintersurfacetexture_wayland.h" #include "surfaceitem_wayland.h" -#include "utils.h" +#include "utils/common.h" #include #include diff --git a/src/pluginmanager.cpp b/src/pluginmanager.cpp index d5ad2bc413..ed13a6be2a 100644 --- a/src/pluginmanager.cpp +++ b/src/pluginmanager.cpp @@ -8,7 +8,7 @@ #include "dbusinterface.h" #include "main.h" #include "plugin.h" -#include "utils.h" +#include "utils/common.h" #include #include diff --git a/src/plugins/screencast/screencaststream.cpp b/src/plugins/screencast/screencaststream.cpp index bb551817aa..cb3531f0dc 100644 --- a/src/plugins/screencast/screencaststream.cpp +++ b/src/plugins/screencast/screencaststream.cpp @@ -18,7 +18,7 @@ #include "pipewirecore.h" #include "platform.h" #include "screencastsource.h" -#include "utils.h" +#include "utils/common.h" #include diff --git a/src/renderloop.cpp b/src/renderloop.cpp index 310392c858..90cbbf1057 100644 --- a/src/renderloop.cpp +++ b/src/renderloop.cpp @@ -7,8 +7,8 @@ #include "renderloop.h" #include "options.h" #include "renderloop_p.h" -#include "utils.h" #include "surfaceitem.h" +#include "utils/common.h" namespace KWin { diff --git a/src/rules.h b/src/rules.h index 22bbb5bc73..6bb71b08d3 100644 --- a/src/rules.h +++ b/src/rules.h @@ -17,7 +17,7 @@ #include "placement.h" #include "options.h" -#include "utils.h" +#include "utils/common.h" class QDebug; class KConfig; diff --git a/src/scene.h b/src/scene.h index 8306f51b78..14411fdca3 100644 --- a/src/scene.h +++ b/src/scene.h @@ -11,7 +11,7 @@ #define KWIN_SCENE_H #include "toplevel.h" -#include "utils.h" +#include "utils/common.h" #include "kwineffects.h" #include diff --git a/src/scenes/opengl/scene_opengl.cpp b/src/scenes/opengl/scene_opengl.cpp index 0dd766cac2..b1cff70263 100644 --- a/src/scenes/opengl/scene_opengl.cpp +++ b/src/scenes/opengl/scene_opengl.cpp @@ -20,7 +20,7 @@ #include #include -#include "utils.h" +#include "utils/common.h" #include "abstract_client.h" #include "composite.h" #include "effects.h" diff --git a/src/screenedge.cpp b/src/screenedge.cpp index da91bf441a..569415ed17 100644 --- a/src/screenedge.cpp +++ b/src/screenedge.cpp @@ -25,7 +25,7 @@ #include "cursor.h" #include "main.h" #include "platform.h" -#include "utils.h" +#include "utils/common.h" #include #include "virtualdesktops.h" // DBus generated diff --git a/src/screens.cpp b/src/screens.cpp index 666acfeebd..6b3428e3db 100644 --- a/src/screens.cpp +++ b/src/screens.cpp @@ -10,7 +10,7 @@ #include #include "abstract_output.h" #include "cursor.h" -#include "utils.h" +#include "utils/common.h" #include "settings.h" #include #include diff --git a/src/session_consolekit.cpp b/src/session_consolekit.cpp index 979d19a369..e642327a5e 100644 --- a/src/session_consolekit.cpp +++ b/src/session_consolekit.cpp @@ -5,7 +5,7 @@ */ #include "session_consolekit.h" -#include "utils.h" +#include "utils/common.h" #include #include diff --git a/src/session_logind.cpp b/src/session_logind.cpp index 714ff812ed..818a96620b 100644 --- a/src/session_logind.cpp +++ b/src/session_logind.cpp @@ -5,7 +5,7 @@ */ #include "session_logind.h" -#include "utils.h" +#include "utils/common.h" #include #include diff --git a/src/tabbox/tabbox.h b/src/tabbox/tabbox.h index 313a24c7a2..ca497fb200 100644 --- a/src/tabbox/tabbox.h +++ b/src/tabbox/tabbox.h @@ -15,7 +15,7 @@ #include #include #include -#include "utils.h" +#include "utils/common.h" #include "tabbox/tabboxhandler.h" class KConfigGroup; diff --git a/src/toplevel.h b/src/toplevel.h index 256fdb4253..f6b5dd4e61 100644 --- a/src/toplevel.h +++ b/src/toplevel.h @@ -11,7 +11,7 @@ #define KWIN_TOPLEVEL_H // kwin -#include "utils.h" +#include "utils/common.h" #include "utils/xcbutils.h" // KDE #include diff --git a/src/udev.cpp b/src/udev.cpp index 94a35a1479..05f8004e3c 100644 --- a/src/udev.cpp +++ b/src/udev.cpp @@ -10,7 +10,7 @@ #include "main.h" #include "platform.h" #include "session.h" -#include "utils.h" +#include "utils/common.h" // Qt #include #include diff --git a/src/unmanaged.cpp b/src/unmanaged.cpp index 5cad066a72..de3caa303d 100644 --- a/src/unmanaged.cpp +++ b/src/unmanaged.cpp @@ -13,7 +13,7 @@ #include "effects.h" #include "deleted.h" #include "surfaceitem_x11.h" -#include "utils.h" +#include "utils/common.h" #include #include diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt index 72cd8fdb36..e4da9f6990 100644 --- a/src/utils/CMakeLists.txt +++ b/src/utils/CMakeLists.txt @@ -1,5 +1,6 @@ target_sources(kwin PRIVATE abstract_opengl_context_attribute_builder.cpp + common.cpp egl_context_attribute_builder.cpp subsurfacemonitor.cpp xcbutils.cpp diff --git a/src/utils.cpp b/src/utils/common.cpp similarity index 99% rename from src/utils.cpp rename to src/utils/common.cpp index d8d71f2b63..62be29a3ee 100644 --- a/src/utils.cpp +++ b/src/utils/common.cpp @@ -14,7 +14,7 @@ */ -#include "utils.h" +#include "utils/common.h" #include #include diff --git a/src/utils.h b/src/utils/common.h similarity index 99% rename from src/utils.h rename to src/utils/common.h index 0a90931b1c..196777f512 100644 --- a/src/utils.h +++ b/src/utils/common.h @@ -8,8 +8,7 @@ SPDX-License-Identifier: GPL-2.0-or-later */ -#ifndef KWIN_UTILS_H -#define KWIN_UTILS_H +#pragma once // cmake stuff #include @@ -238,5 +237,3 @@ KWIN_EXPORT QPoint popupOffset(const QRect &anchorRect, const Qt::Edges anchorEd // Must be outside namespace Q_DECLARE_OPERATORS_FOR_FLAGS(KWin::StrutAreas) Q_DECLARE_OPERATORS_FOR_FLAGS(KWin::QuickTileMode) - -#endif diff --git a/src/utils/xcbutils.cpp b/src/utils/xcbutils.cpp index 7563281a3b..337a9a07c2 100644 --- a/src/utils/xcbutils.cpp +++ b/src/utils/xcbutils.cpp @@ -8,7 +8,7 @@ SPDX-License-Identifier: GPL-2.0-or-later */ #include "utils/xcbutils.h" -#include "utils.h" +#include "utils/common.h" // Qt #include // xcb diff --git a/src/workspace.h b/src/workspace.h index 559f442f63..63a240d924 100644 --- a/src/workspace.h +++ b/src/workspace.h @@ -16,7 +16,7 @@ // kwin #include "options.h" #include "sm.h" -#include "utils.h" +#include "utils/common.h" // Qt #include #include diff --git a/src/x11syncmanager.cpp b/src/x11syncmanager.cpp index a2fb42ed10..99168ff09d 100644 --- a/src/x11syncmanager.cpp +++ b/src/x11syncmanager.cpp @@ -12,7 +12,7 @@ #include "platform.h" #include "renderbackend.h" #include "scene.h" -#include "utils.h" +#include "utils/common.h" #include "kwinglplatform.h" diff --git a/src/xdgactivationv1.cpp b/src/xdgactivationv1.cpp index fe98aeaf12..e2270a3393 100644 --- a/src/xdgactivationv1.cpp +++ b/src/xdgactivationv1.cpp @@ -10,7 +10,7 @@ #include "xdgactivationv1.h" #include "abstract_client.h" #include "effects.h" -#include "utils.h" +#include "utils/common.h" #include "wayland_server.h" #include "workspace.h" #include diff --git a/src/xkb.cpp b/src/xkb.cpp index 079ce0c815..038943abf7 100644 --- a/src/xkb.cpp +++ b/src/xkb.cpp @@ -7,7 +7,7 @@ SPDX-License-Identifier: GPL-2.0-or-later */ #include "xkb.h" -#include "utils.h" +#include "utils/common.h" // frameworks #include // KWayland diff --git a/src/xwl/xwayland.cpp b/src/xwl/xwayland.cpp index ed41a4e6f7..6887beaea1 100644 --- a/src/xwl/xwayland.cpp +++ b/src/xwl/xwayland.cpp @@ -17,7 +17,7 @@ #include "abstract_output.h" #include "main_wayland.h" #include "options.h" -#include "utils.h" +#include "utils/common.h" #include "platform.h" #include "utils/xcbutils.h" #include "wayland_server.h"