From 45ebbee471baf0c9c4d2cb8fc622a551d70d15c8 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Sun, 17 Apr 2022 17:29:22 +0800 Subject: [PATCH] misc: minor format changes Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- src/core/utils_linux.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/core/utils_linux.cpp b/src/core/utils_linux.cpp index f754eff..bfd034e 100644 --- a/src/core/utils_linux.cpp +++ b/src/core/utils_linux.cpp @@ -41,15 +41,15 @@ FRAMELESSHELPER_BEGIN_NAMESPACE using namespace Global; #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_TOP = 1; -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_BOTTOMRIGHT = 4; -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_LEFT = 7; -static constexpr const auto _NET_WM_MOVERESIZE_MOVE = 8; +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_TOPRIGHT = 2; +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_BOTTOM = 5; +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_MOVE = 8; #endif FRAMELESSHELPER_BYTEARRAY_CONSTANT(display) @@ -169,6 +169,7 @@ template #endif } +#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0)) [[nodiscard]] static inline Display *x11_get_display() { if (!qGuiApp) { @@ -270,7 +271,6 @@ static inline void x11_emulateButtonRelease(const WId windowId, const QPoint &gl 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) { Q_ASSERT(windowId);