Commit 1b4258bf authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

kwineffects: Move infiniteRegion() to kwinglobals.h

infiniteRegion() is useful not only to effects but also other kwin
components, so move it to kwinglobals.h in order to make backends stop
depending on libkwineffects
parent 1baf39da
Pipeline #208770 passed with stage
in 29 minutes and 21 seconds
......@@ -12,7 +12,6 @@
#include "drm_dumb_buffer.h"
#include "drm_gpu.h"
#include "drm_logging.h"
#include "kwineffects.h"
namespace KWin
{
......
......@@ -16,7 +16,6 @@
#include "drm_egl_backend.h"
#include "drm_gpu.h"
#include "drm_logging.h"
#include "kwineffects.h"
#include "kwineglutils_p.h"
#include "kwinglplatform.h"
......
......@@ -12,7 +12,6 @@
#include "wayland_output.h"
#include "composite.h"
#include "kwineffects.h"
#include "wayland_logging.h"
#include <KWayland/Client/buffer.h>
......
......@@ -190,15 +190,6 @@ enum EffectFrameStyle {
EffectFrameStyled ///< Displays a Plasma-styled frame around the contents.
};
/**
* Infinite region (i.e. a special region type saying that everything needs to be painted).
*/
KWINEFFECTS_EXPORT inline QRect infiniteRegion()
{
// INT_MIN / 2 because width/height is used (INT_MIN+INT_MAX==-1)
return QRect(INT_MIN / 2, INT_MIN / 2, INT_MAX, INT_MAX);
}
/**
* @short Base class for all KWin effects
*
......
......@@ -218,6 +218,15 @@ private:
QPoint m_hotSpot;
};
/**
* Infinite region (i.e. a special region type saying that everything needs to be painted).
*/
inline KWIN_EXPORT QRect infiniteRegion()
{
// INT_MIN / 2 because width/height is used (INT_MIN+INT_MAX==-1)
return QRect(INT_MIN / 2, INT_MIN / 2, INT_MAX, INT_MAX);
}
} // namespace
Q_DECLARE_METATYPE(std::chrono::nanoseconds)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment