Skip to content
  • Florian Müllner's avatar
    window-props: Add FORCE_INIT flag to force hooks for unset properties · b7119c55
    Florian Müllner authored
    Since commit a7b72130, we rely on the standard property
    system to initialize the window type (and likewise for the window
    role since commit 031154a4). However as property hooks are
    never run for properties that are not set, we end up not initializing
    the window type correctly for windows with no _NET_WM_WINDOW_TYPE
    property (which includes virtually all OR windows, causing them to
    show up in pagers and the Shell overview and resulting in frequent
    crashes due to breaking reasonable assumptions all over the place).
    
    Introduce a new FORCE_INIT flag to allow forcing hooks to run
    even when the corresponding property is unset, and use it for
    both _NET_WM_WINDOW_TYPE and _NET_WM_WINDOW_ROLE.
    b7119c55