mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
randr: drop internal server reset support
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
b0ac921156
commit
80f49ee703
@@ -28,6 +28,8 @@
|
||||
|
||||
#include <dix-config.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "dix/screen_hooks_priv.h"
|
||||
#include "dix/screenint_priv.h"
|
||||
#include "miext/extinit_priv.h"
|
||||
@@ -272,27 +274,30 @@ SRRNotifyEvent(xEvent *from, xEvent *to)
|
||||
}
|
||||
}
|
||||
|
||||
static x_server_generation_t RRGeneration;
|
||||
static bool initialized = false;
|
||||
|
||||
Bool
|
||||
RRInit(void)
|
||||
{
|
||||
if (RRGeneration != serverGeneration) {
|
||||
if (!RRModeInit())
|
||||
return FALSE;
|
||||
if (!RRCrtcInit())
|
||||
return FALSE;
|
||||
if (!RROutputInit())
|
||||
return FALSE;
|
||||
if (!RRProviderInit())
|
||||
return FALSE;
|
||||
if (!RRLeaseInit())
|
||||
return FALSE;
|
||||
RRGeneration = serverGeneration;
|
||||
}
|
||||
/* prevent double init attempts */
|
||||
if (initialized)
|
||||
return TRUE;
|
||||
|
||||
if (!RRModeInit())
|
||||
return FALSE;
|
||||
if (!RRCrtcInit())
|
||||
return FALSE;
|
||||
if (!RROutputInit())
|
||||
return FALSE;
|
||||
if (!RRProviderInit())
|
||||
return FALSE;
|
||||
if (!RRLeaseInit())
|
||||
return FALSE;
|
||||
|
||||
if (!dixRegisterPrivateKey(&rrPrivKeyRec, PRIVATE_SCREEN, 0))
|
||||
return FALSE;
|
||||
|
||||
initialized = true;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user