Merge branch 'issue-1139' into 'main'

Draft: os: Always create lock file on explicit display

See merge request xorg/xserver!614
This commit is contained in:
Olivier Certner 2026-06-02 11:07:23 +00:00
commit e2eb479278

View file

@ -264,7 +264,7 @@ LockServer(void)
int len;
char port[20];
if (nolock || NoListenAll)
if (nolock || NoListenAll || (displayfd != -1 && !explicit_display))
return;
/*
* Path names
@ -391,7 +391,7 @@ LockServer(void)
void
UnlockServer(void)
{
if (nolock || NoListenAll)
if (nolock || NoListenAll || (displayfd != -1 && !explicit_display))
return;
if (!StillLocking) {
@ -764,9 +764,6 @@ ProcessCommandLine(int argc, char *argv[])
else if (strcmp(argv[i], "-displayfd") == 0) {
if (++i < argc) {
displayfd = atoi(argv[i]);
#ifdef LOCK_SERVER
nolock = TRUE;
#endif
}
else
UseMsg();