Shadow of locked items that are not visibe

Description

Shadow of locked items is visible on invisible items.

image

With f.fab enabled:

image

Shadows of invisible items shouldn't be shown I think 🤔

Steps to reproduce

  1. lock any item
  2. disable F.Fab
  3. enable show shadow of locked items
  4. select item

KiCad Version

Application: KiCad PCB Editor x86_64 on x86_64
Version: 10.0.1, release build
Libraries:
    wxWidgets 3.2.10 GLX
    FreeType 2.14.1
    HarfBuzz 11.4.5
    FontConfig 2.17.1
    libcurl/8.15.0 OpenSSL/3.5.5 zlib/1.3.1 zstd/1.5.7 libidn2/2.3.8 libpsl/0.21.5 nghttp2/1.66.0
Platform: GNOME 49 (Flatpak runtime), 64 bit, Little endian, wxGTK, X11, x11, X-Cinnamon, cinnamon
OpenGL: AMD, AMD Radeon RX 550 / 550 Series (radeonsi, polaris12, ACO, DRM 3.57, 6.8.0-90-generic), 4.6 (Compatibility Profile) Mesa 26.0.4 (git-d9e5e36b19), GLX 1.4
Build Info:
    Date: Nov 11 2011 11:11:11
    wxWidgets: 3.2.10 (wchar_t,wx containers) GTK+ 3.24
    Boost: 1.90.0
    OCC: 7.9.3
    Curl: 8.15.0
    ngspice: 46
    Compiler: GCC 15.2.0 with C++ ABI 1020
    KICAD_IPC_API=ON
    KICAD_USE_PCH=OFF
Locale: 
    Lang: de_DE
    Enc: UTF-8
    Num: 1.234,5
    Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)