From 8bc32f4ab6d9f7632ef933c3c4ad70e314e70b35 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Fri, 5 Dec 2025 05:41:22 +0000 Subject: [PATCH] sync: from linuxdeepin/qt5platform-plugins Synchronize source files from linuxdeepin/qt5platform-plugins. Source-pull-request: https://github.com/linuxdeepin/qt5platform-plugins/pull/313 --- xcb/dplatformintegration.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xcb/dplatformintegration.cpp b/xcb/dplatformintegration.cpp index 314181c..0a009c1 100644 --- a/xcb/dplatformintegration.cpp +++ b/xcb/dplatformintegration.cpp @@ -1074,7 +1074,9 @@ static void cursorThemePropertyChanged(xcb_connection_t *connection, const QByte } xcb_cursor->m_cursorHash.clear(); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) // source from: QXCBCursor::updateContext() + // Note: m_cursorContext only exists in Qt6 if (xcb_cursor->m_cursorContext) { xcb_cursor_context_free(xcb_cursor->m_cursorContext); } @@ -1084,6 +1086,7 @@ static void cursorThemePropertyChanged(xcb_connection_t *connection, const QByte if (xcb_cursor_context_new(conn, xcb_cursor->m_screen->screen(), &xcb_cursor->m_cursorContext) < 0) { xcb_cursor->m_cursorContext = nullptr; } +#endif } }