Move utils.h file to utils directory
This commit is contained in:
parent
8dd1d86310
commit
e2a393ce2d
58 changed files with 57 additions and 60 deletions
|
@ -13,7 +13,7 @@
|
|||
#include <KPluginMetaData>
|
||||
|
||||
#include "main.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
namespace KWin
|
||||
{
|
||||
|
|
|
@ -131,7 +131,6 @@ target_sources(kwin PRIVATE
|
|||
udev.cpp
|
||||
unmanaged.cpp
|
||||
useractions.cpp
|
||||
utils.cpp
|
||||
virtualdesktops.cpp
|
||||
virtualdesktopsdbustypes.cpp
|
||||
virtualkeyboard_dbus.cpp
|
||||
|
|
|
@ -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 <kwin_export.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 <kwinglutils.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 <QObject>
|
||||
#include <QVector>
|
||||
|
|
|
@ -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 <wayland-egl.h>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#define KWIN_SCENE_QPAINTER_WAYLAND_BACKEND_H
|
||||
|
||||
#include "qpainterbackend.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QImage>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
#include "effects_mouse_interception_x11_filter.h"
|
||||
#include "effects.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <QMouseEvent>
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "cursor.h"
|
||||
#include "screenedge.h"
|
||||
#include "screens.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
#include "workspace.h"
|
||||
|
||||
#include <QDesktopWidget>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include "eglonxbackend.h"
|
||||
#include "openglsurfacetexture_x11.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <kwingltexture.h>
|
||||
#include <kwingltexture_p.h>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "openglbackend.h"
|
||||
#include "openglsurfacetexture_x11.h"
|
||||
#include "x11eventfilter.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <xcb/glx.h>
|
||||
#include <epoxy/glx.h>
|
||||
|
|
|
@ -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 <QVector>
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
// own
|
||||
#include "client_machine.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
// KF5
|
||||
#include <NETWM>
|
||||
// Qt
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include "colordevice.h"
|
||||
#include "abstract_output.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include "3rdparty/colortemperature.h"
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include "main.h"
|
||||
#include "platform.h"
|
||||
#include "session.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
namespace KWin
|
||||
{
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "decorations/decoratedclient.h"
|
||||
#include "deleted.h"
|
||||
#include "scene.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <kwineffects.h>
|
||||
#include "plugin.h"
|
||||
#include "scripting/scriptedeffect.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
// KDE
|
||||
#include <KConfigGroup>
|
||||
#include <KPackage/Package>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "gestures.h"
|
||||
#include "kwinglobals.h"
|
||||
#include "main.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
#include <config-kwin.h>
|
||||
// KDE
|
||||
#include <KGlobalAccel/private/kglobalaccel_interface.h>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#ifndef KWIN_GROUP_H
|
||||
#define KWIN_GROUP_H
|
||||
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
#include <netwm.h>
|
||||
|
||||
namespace KWin
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "renderloop.h"
|
||||
#include "scene.h"
|
||||
#include "screens.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
namespace KWin
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
|
||||
*/
|
||||
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
#include "x11client.h"
|
||||
#include "focuschain.h"
|
||||
#include "netinfo.h"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "options.h"
|
||||
#include "config-kwin.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
#include "platform.h"
|
||||
|
||||
#ifndef KCMRULES
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "main.h"
|
||||
#include "platform.h"
|
||||
#include "scripting/scripting.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
// Frameworks
|
||||
#include <KConfigGroup>
|
||||
// Qt
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "basiceglsurfacetexture_internal.h"
|
||||
#include "kwingltexture.h"
|
||||
#include "surfaceitem_internal.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <QOpenGLFramebufferObject>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "kwineglext.h"
|
||||
#include "kwingltexture.h"
|
||||
#include "surfaceitem_wayland.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <KWaylandServer/drmclientbuffer.h>
|
||||
#include <KWaylandServer/linuxdmabufv1clientbuffer.h>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "kwineglext.h"
|
||||
#include "kwineglutils_p.h"
|
||||
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
#include "wayland_server.h"
|
||||
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <kwinglutils_funcs.h>
|
||||
|
||||
#include "screens.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <QElapsedTimer>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "qpainterbackend.h"
|
||||
#include "qpaintersurfacetexture_internal.h"
|
||||
#include "qpaintersurfacetexture_wayland.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include "qpaintersurfacetexture_wayland.h"
|
||||
#include "surfaceitem_wayland.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <KWaylandServer/shmclientbuffer.h>
|
||||
#include <KWaylandServer/surface_interface.h>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include "dbusinterface.h"
|
||||
#include "main.h"
|
||||
#include "plugin.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <KConfigGroup>
|
||||
#include <KPluginFactory>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "pipewirecore.h"
|
||||
#include "platform.h"
|
||||
#include "screencastsource.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <KLocalizedString>
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include "placement.h"
|
||||
#include "options.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
class QDebug;
|
||||
class KConfig;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#define KWIN_SCENE_H
|
||||
|
||||
#include "toplevel.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
#include "kwineffects.h"
|
||||
|
||||
#include <QElapsedTimer>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <kwinglplatform.h>
|
||||
#include <kwinoffscreenquickview.h>
|
||||
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
#include "abstract_client.h"
|
||||
#include "composite.h"
|
||||
#include "effects.h"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include "cursor.h"
|
||||
#include "main.h"
|
||||
#include "platform.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
#include <workspace.h>
|
||||
#include "virtualdesktops.h"
|
||||
// DBus generated
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <abstract_client.h>
|
||||
#include "abstract_output.h"
|
||||
#include "cursor.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
#include "settings.h"
|
||||
#include <workspace.h>
|
||||
#include <config-kwin.h>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "session_consolekit.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusConnection>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "session_logind.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusConnection>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <QKeySequence>
|
||||
#include <QTimer>
|
||||
#include <QModelIndex>
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
#include "tabbox/tabboxhandler.h"
|
||||
|
||||
class KConfigGroup;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#define KWIN_TOPLEVEL_H
|
||||
|
||||
// kwin
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
#include "utils/xcbutils.h"
|
||||
// KDE
|
||||
#include <NETWM>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include "main.h"
|
||||
#include "platform.h"
|
||||
#include "session.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
// Qt
|
||||
#include <QByteArray>
|
||||
#include <QScopedPointer>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "effects.h"
|
||||
#include "deleted.h"
|
||||
#include "surfaceitem_x11.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QTimer>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
*/
|
||||
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include <QPainter>
|
||||
#include <QWidget>
|
|
@ -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 <config-kwin.h>
|
||||
|
@ -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
|
|
@ -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 <QDebug>
|
||||
// xcb
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
// kwin
|
||||
#include "options.h"
|
||||
#include "sm.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
// Qt
|
||||
#include <QTimer>
|
||||
#include <QVector>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "platform.h"
|
||||
#include "renderbackend.h"
|
||||
#include "scene.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
#include "kwinglplatform.h"
|
||||
|
||||
|
|
|
@ -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 <KWaylandServer/display.h>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include "xkb.h"
|
||||
#include "utils.h"
|
||||
#include "utils/common.h"
|
||||
// frameworks
|
||||
#include <KConfigGroup>
|
||||
// KWayland
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue