Skip to content

Commit e13f0a5

Browse files
committed
[PR #1442] kdrive: drop obsolete support for internal server reset
PR: #1442
1 parent 4c2cdee commit e13f0a5

File tree

4 files changed

+5
-18
lines changed

4 files changed

+5
-18
lines changed

hw/kdrive/fbdev/fbinit.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ ddxInputThreadInit(void)
5656
void
5757
InitOutput(int argc, char **argv)
5858
{
59-
if (serverGeneration == 1)
60-
ephyrExtensionInit();
61-
59+
ephyrExtensionInit();
6260
KdInitOutput(argc, argv);
6361
}
6462

hw/kdrive/src/kdrive.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ KdDepths kdDepths[] = {
7777
#define KD_DEFAULT_BUTTONS 5
7878

7979
DevPrivateKeyRec kdScreenPrivateKeyRec;
80-
x_server_generation_t kdGeneration;
8180

8281
Bool kdVideoTest;
8382
unsigned long kdVideoTestTime;
@@ -623,21 +622,16 @@ KdOsInit(const KdOsFuncs * pOsFuncs)
623622
{
624623
kdOsFuncs = pOsFuncs;
625624
if (pOsFuncs) {
626-
if (serverGeneration == 1) {
627-
KdDoSwitchCmd("start");
628-
if (pOsFuncs->Init)
629-
(*pOsFuncs->Init) ();
630-
}
625+
KdDoSwitchCmd("start");
626+
if (pOsFuncs->Init)
627+
(*pOsFuncs->Init) ();
631628
}
632629
}
633630

634631
Bool KdAllocatePrivates(ScreenPtr pScreen)
635632
{
636633
KdPrivScreenPtr pScreenPriv;
637634

638-
if (kdGeneration != serverGeneration)
639-
kdGeneration = serverGeneration;
640-
641635
if (!dixRegisterPrivateKey(&kdScreenPrivateKeyRec, PRIVATE_SCREEN, 0))
642636
return FALSE;
643637

hw/kdrive/src/kdrive.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ int KdAddKeyboard(KdKeyboardInfo * ki);
295295
void KdRemoveKeyboard(KdKeyboardInfo * ki);
296296

297297
typedef struct _KdOsFuncs {
298-
int (*Init) (void); /* Only called when the X server is started, when serverGeneration == 1 */
298+
int (*Init) (void); /* only called when the X server is started */
299299
void (*Enable) (void); /* called when screen is enabled */
300300
void (*Disable) (void); /* called when screen is disabled */
301301
Bool (*SpecialKey) (KeySym);
@@ -338,7 +338,6 @@ extern DevPrivateKeyRec kdScreenPrivateKeyRec;
338338

339339
#define kdScreenPrivateKey (&kdScreenPrivateKeyRec)
340340

341-
extern x_server_generation_t kdGeneration;
342341
extern Bool kdEnabled;
343342
extern Bool kdSwitchPending;
344343
extern Bool kdEmulateMiddleButton;

hw/kdrive/src/kxv.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ static DevPrivateKeyRec KdXVWindowKeyRec;
100100
#define KdXVWindowKey (&KdXVWindowKeyRec)
101101
static DevPrivateKey KdXvScreenKey;
102102
static DevPrivateKeyRec KdXVScreenPrivateKey;
103-
static x_server_generation_t KdXVGeneration = 0;
104103
static unsigned long PortResource = 0;
105104

106105
#define GET_XV_SCREEN(pScreen) ((XvScreenPtr) \
@@ -119,9 +118,6 @@ KdXVScreenInit(ScreenPtr pScreen, KdVideoAdaptorPtr adaptors, int num)
119118

120119
/* fprintf(stderr,"KdXVScreenInit initializing %d adaptors\n",num); */
121120

122-
if (KdXVGeneration != serverGeneration)
123-
KdXVGeneration = serverGeneration;
124-
125121
if (noXvExtension)
126122
return FALSE;
127123

0 commit comments

Comments
 (0)