Move resource_cast helper to shared utils/ directory

This commit is contained in:
Vlad Zahorodnii 2023-09-29 11:46:16 +03:00
parent e0074d6078
commit 0b21c53d44
16 changed files with 14 additions and 17 deletions

View file

@ -6,8 +6,6 @@
#pragma once #pragma once
#include "kwin_export.h"
#include <limits> #include <limits>
#include <type_traits> #include <type_traits>

View file

@ -6,7 +6,7 @@
#include "datacontrolsource_v1.h" #include "datacontrolsource_v1.h"
#include "clientconnection.h" #include "clientconnection.h"
#include "datacontroldevicemanager_v1.h" #include "datacontroldevicemanager_v1.h"
#include "utils.h" #include "utils/resource.h"
// Qt // Qt
#include <QStringList> #include <QStringList>
// Wayland // Wayland

View file

@ -8,7 +8,7 @@
#include "clientconnection.h" #include "clientconnection.h"
#include "datadevicemanager.h" #include "datadevicemanager.h"
#include "datasource_p.h" #include "datasource_p.h"
#include "utils.h" #include "utils/resource.h"
// Qt // Qt
#include <QStringList> #include <QStringList>
// Wayland // Wayland

View file

@ -6,8 +6,8 @@
#include "drmlease_v1.h" #include "drmlease_v1.h"
#include "display.h" #include "display.h"
#include "drmlease_v1_p.h" #include "drmlease_v1_p.h"
#include "utils.h"
#include "utils/common.h" #include "utils/common.h"
#include "utils/resource.h"
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>

View file

@ -7,7 +7,7 @@
#include "output.h" #include "output.h"
#include "display.h" #include "display.h"
#include "display_p.h" #include "display_p.h"
#include "utils.h" #include "utils/resource.h"
#include "core/output.h" #include "core/output.h"

View file

@ -8,8 +8,8 @@
#include "display.h" #include "display.h"
#include "display_p.h" #include "display_p.h"
#include "utils.h"
#include "utils/common.h" #include "utils/common.h"
#include "utils/resource.h"
#include "core/output.h" #include "core/output.h"

View file

@ -7,7 +7,7 @@
#include "plasmashell.h" #include "plasmashell.h"
#include "display.h" #include "display.h"
#include "surface.h" #include "surface.h"
#include "utils.h" #include "utils/resource.h"
#include <qwayland-server-plasma-shell.h> #include <qwayland-server-plasma-shell.h>

View file

@ -14,8 +14,8 @@
#include "relativepointer_v1_p.h" #include "relativepointer_v1_p.h"
#include "seat.h" #include "seat.h"
#include "surface.h" #include "surface.h"
#include "utils.h"
#include "utils/common.h" #include "utils/common.h"
#include "utils/resource.h"
namespace KWin namespace KWin
{ {

View file

@ -6,7 +6,7 @@
#include "primaryselectionsource_v1.h" #include "primaryselectionsource_v1.h"
#include "clientconnection.h" #include "clientconnection.h"
#include "primaryselectiondevicemanager_v1.h" #include "primaryselectiondevicemanager_v1.h"
#include "utils.h" #include "utils/resource.h"
// Qt // Qt
#include <QStringList> #include <QStringList>
// Wayland // Wayland

View file

@ -5,7 +5,7 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/ */
#include "region_p.h" #include "region_p.h"
#include "utils.h" #include "utils/resource.h"
namespace KWin namespace KWin
{ {

View file

@ -29,8 +29,8 @@
#include "textinput_v2_p.h" #include "textinput_v2_p.h"
#include "textinput_v3_p.h" #include "textinput_v3_p.h"
#include "touch_p.h" #include "touch_p.h"
#include "utils.h"
#include "utils/common.h" #include "utils/common.h"
#include "utils/resource.h"
#include "xdgtopleveldrag_v1.h" #include "xdgtopleveldrag_v1.h"
#include <linux/input.h> #include <linux/input.h>

View file

@ -21,7 +21,7 @@
#include "subcompositor.h" #include "subcompositor.h"
#include "surface_p.h" #include "surface_p.h"
#include "transaction.h" #include "transaction.h"
#include "utils.h" #include "utils/resource.h"
#include <wayland-server.h> #include <wayland-server.h>
// std // std

View file

@ -8,7 +8,6 @@
#include "core/graphicsbuffer.h" #include "core/graphicsbuffer.h"
#include "surface.h" #include "surface.h"
#include "utils.h"
// Qt // Qt
#include <QHash> #include <QHash>
#include <QPointer> #include <QPointer>

View file

@ -8,7 +8,7 @@
#include "display.h" #include "display.h"
#include "seat.h" #include "seat.h"
#include "surface.h" #include "surface.h"
#include "utils.h" #include "utils/resource.h"
#include "qwayland-server-tablet-unstable-v2.h" #include "qwayland-server-tablet-unstable-v2.h"

View file

@ -10,8 +10,8 @@
#include "display.h" #include "display.h"
#include "output.h" #include "output.h"
#include "seat.h" #include "seat.h"
#include "utils.h"
#include "utils/common.h" #include "utils/common.h"
#include "utils/resource.h"
#include <QTimer> #include <QTimer>

View file

@ -10,7 +10,7 @@
#include "datasource_p.h" #include "datasource_p.h"
#include "display.h" #include "display.h"
#include "surface.h" #include "surface.h"
#include "utils.h" #include "utils/resource.h"
#include "xdgshell.h" #include "xdgshell.h"
#include <qwayland-server-qt-toplevel-drag-v1.h> #include <qwayland-server-qt-toplevel-drag-v1.h>