window-props: Add FORCE_INIT flag to force hooks for unset properties
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.
Showing with 8 additions and 3 deletions