On Fri Apr 17 12:37:00 2026 +0000, Rémi Bernon wrote:
I can't recall why I introduced it with https://gitlab.winehq.org/wine/wine/-/merge_requests/8130, I believe we probably discussed that somewhere and the idea was probably that xinerama indices don't necessarily mean a particular monitor, but as I said above I don't think it should matter from our perspective, it's rather something the WM should worry about? I think we still need the generation counter. Even though WM can update the \_NET_WM_FULLSCREEN_MONITORS after a display layout change, we still need to know when the monitor generation changes, so that we know the monitors that the previous monitor indices referred to are different from the current ones. For example, the old monitor that was at 0 may now be 1 after a mode change. This also means that the old monitor was at index 1, which is now at index 0, and might be referring to the same monitor, so even when the indices change, there is no guarantee that a ConfigureNotify will happen. Maybe comparing the old and new window positions instead of monitor indices?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10620#note_136736