On Sun Jan 12 09:05:23 2025 +0000, Rémi Bernon wrote:
Ah yeah, this makes much more sense! IIUC, XRRGetOutputPrimary always returns 0 but this is a bug caused by the current mode cache and not that it's suddenly working?
XRRGetOutputPrimary() always returns 0 because no primary monitor is set and the cached modes are also correct. The reason why we didn't see get_primary_rect() warnings for the xrandr14_get_current_mode() call for the second adapter is because "\\.\DISPLAY1" gets passed to the xrandr14_get_current_mode(), and because the current mode for the first adapter is already loaded, the mode is retrieved from the cache, skipping getting the current mode and calling get_primary_rect().