Files
RedBear-OS/local/scripts
vasilito 70b215f945 gate-kx11extras: fix inert #ifdef HAVE_X11 guards
config-X11.h.cmake declares the macro with `#cmakedefine01 HAVE_X11`, which
always DEFINES it -- as 0 when X11 is off, not undefined. So `#ifdef HAVE_X11`
is true in BOTH configurations and the guard does nothing:

    #ifdef HAVE_X11
    #include <xcb/xcb.h>      <- compiled even with HAVE_X11 == 0
    #endif

That is how appmenu.h reached
  appmenu/appmenu.h:13:10: fatal error: xcb/xcb.h: No such file or directory
while looking correctly guarded. `#if HAVE_X11` reads the value and behaves as
intended.

An upstream bug invisible on any system that has X11 headers installed, because
there the include just succeeds. 3 occurrences across appmenu.h and
panelview.h; plasma-desktop has none. Normalisation runs on every file rather
than only those using the X11-only KWindowSystem APIs, since the defect is
about the guard form, not the guarded content.
2026-08-04 21:18:07 +03:00
..