mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
Florian Müllner
b7119c55a6
window-props: Add FORCE_INIT flag to force hooks for unset properties
Since commit a7b7213017441ecc9, we rely on the standard property system to initialize the window type (and likewise for the window role since commit 031154a4002d59). 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.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%