Skip to content

Commit fcde5dd

Browse files
sync: from linuxdeepin/qt5platform-plugins
Synchronize source files from linuxdeepin/qt5platform-plugins. Source-pull-request: linuxdeepin/qt5platform-plugins#307
1 parent 196a557 commit fcde5dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

xcb/dxcbwmsupport.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ void DXcbWMSupport::updateHasComposite()
171171
xcb_connection_t *xcb_connection = DPlatformIntegration::xcbConnection()->xcb_connection();
172172

173173
auto atom = Utility::internAtom("_NET_KDE_COMPOSITE_TOGGLING");
174+
175+
if (atom == 0) {
176+
qWarning() << "The value of atom:_NET_KDE_COMPOSITE_TOGGLING is 0 !";
177+
return;
178+
}
179+
174180
xcb_window_t root = DPlatformIntegration::xcbConnection()->primaryScreen()->root();
175181

176182
//stage1: check if _NET_KDE_COMPOSITE_TOGGLING is supported

0 commit comments

Comments
 (0)