d8d2ed837c
libtaskmanager/virtualdesktopinfo.cpp defines namespace X11Info at namespace scope in terms of QNativeInterface::QX11Application, which does not exist in a Qt built without the xcb platform: error: 'QX11Application' is not a member of 'QNativeInterface' All three call sites were already inside #if HAVE_X11 -- only the definition was exposed -- so wrapping the block changes no reachable behaviour. Restricted to depth-0 'namespace' blocks whose body names an X11-only native interface. Narrow on purpose: brace-matching arbitrary function definitions is much easier to get wrong, and a bad transform here produces invalid C++ rather than a clean failure.