misc: minor format changes

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2022-04-17 17:29:22 +08:00
parent 079c8ff6b6
commit 45ebbee471
1 changed files with 10 additions and 10 deletions

View File

@ -41,15 +41,15 @@ FRAMELESSHELPER_BEGIN_NAMESPACE
using namespace Global; using namespace Global;
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0)) #if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
static constexpr const auto _NET_WM_MOVERESIZE_SIZE_TOPLEFT = 0; static constexpr const auto _NET_WM_MOVERESIZE_SIZE_TOPLEFT = 0;
static constexpr const auto _NET_WM_MOVERESIZE_SIZE_TOP = 1; static constexpr const auto _NET_WM_MOVERESIZE_SIZE_TOP = 1;
static constexpr const auto _NET_WM_MOVERESIZE_SIZE_TOPRIGHT = 2; static constexpr const auto _NET_WM_MOVERESIZE_SIZE_TOPRIGHT = 2;
static constexpr const auto _NET_WM_MOVERESIZE_SIZE_RIGHT = 3; static constexpr const auto _NET_WM_MOVERESIZE_SIZE_RIGHT = 3;
static constexpr const auto _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT = 4; static constexpr const auto _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT = 4;
static constexpr const auto _NET_WM_MOVERESIZE_SIZE_BOTTOM = 5; static constexpr const auto _NET_WM_MOVERESIZE_SIZE_BOTTOM = 5;
static constexpr const auto _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT = 6; static constexpr const auto _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT = 6;
static constexpr const auto _NET_WM_MOVERESIZE_SIZE_LEFT = 7; static constexpr const auto _NET_WM_MOVERESIZE_SIZE_LEFT = 7;
static constexpr const auto _NET_WM_MOVERESIZE_MOVE = 8; static constexpr const auto _NET_WM_MOVERESIZE_MOVE = 8;
#endif #endif
FRAMELESSHELPER_BYTEARRAY_CONSTANT(display) FRAMELESSHELPER_BYTEARRAY_CONSTANT(display)
@ -169,6 +169,7 @@ template<typename T>
#endif #endif
} }
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
[[nodiscard]] static inline Display *x11_get_display() [[nodiscard]] static inline Display *x11_get_display()
{ {
if (!qGuiApp) { if (!qGuiApp) {
@ -270,7 +271,6 @@ static inline void x11_emulateButtonRelease(const WId windowId, const QPoint &gl
XFlush(display); XFlush(display);
} }
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
static inline void x11_moveOrResizeWindow(const WId windowId, const QPoint &pos, const int section) static inline void x11_moveOrResizeWindow(const WId windowId, const QPoint &pos, const int section)
{ {
Q_ASSERT(windowId); Q_ASSERT(windowId);