From 68eb28c9ec4a81387e8149bd644318089dc1adea Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Thu, 6 Nov 2025 02:15:47 +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/307 --- xcb/dxcbwmsupport.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xcb/dxcbwmsupport.cpp b/xcb/dxcbwmsupport.cpp index e6a1462..b2c7c56 100644 --- a/xcb/dxcbwmsupport.cpp +++ b/xcb/dxcbwmsupport.cpp @@ -171,6 +171,12 @@ void DXcbWMSupport::updateHasComposite() xcb_connection_t *xcb_connection = DPlatformIntegration::xcbConnection()->xcb_connection(); auto atom = Utility::internAtom("_NET_KDE_COMPOSITE_TOGGLING"); + + if (atom == 0) { + qWarning() << "The value of atom:_NET_KDE_COMPOSITE_TOGGLING is 0 !"; + return; + } + xcb_window_t root = DPlatformIntegration::xcbConnection()->primaryScreen()->root(); //stage1: check if _NET_KDE_COMPOSITE_TOGGLING is supported