Zhiyi Zhang (@zhiyi) commented about dlls/win32u/sysparams.c:
BOOL ret; lstrcpyW( current_mode.dmDeviceName, adapter->dev.device_name );
I don't like how this is done. Since the display modes passed to drivers are full modes, you can use the position and resolution to determine if a mode is for the primary adapter. The primary adapter mode has an origin of (0, 0) and valid width and height. You can introduce an is_primary_mode() to do that.