[PATCH 3/3] explorer: Load null graphics driver as a fallback.

Rémi Bernon rbernon at codeweavers.com
Thu Apr 15 10:15:35 CDT 2021


On 4/15/21 4:44 PM, Alexandre Julliard wrote:
> Rémi Bernon <rbernon at codeweavers.com> writes:
> 
>> This last patch makes it possible to use the null driver by starting
>> the prefix with "DISPLAY= wine ...". It changes the behavior a bit, as
>> it doesn't fallback to nodrv_CreateWindow anymore in that case.
>>
>> However, nodrv_CreateWindow fallback is still used if the prefix (ie:
>> explorer.exe) was started with an X11 display, and some other process
>> is later started without a display.
>>
>> I'm not sure in any case if that matters much or if it would be better
>> to add the nodrv_CreateWindow warning to nulldrv?
> 
> The idea is that DISPLAY not being set is almost always user error, so
> it's better to fail than to run with invisible output, and running with
> the null driver needs to be requested explicitly.
> 

Alright, that makes sense.

Unless a new environment variable is acceptable, I guess I can keep this 
last patch locally as I don't find registry edition very convenient ;)
-- 
Rémi Bernon <rbernon at codeweavers.com>



More information about the wine-devel mailing list