From 6e018f6a30dab1259b8fdc1ae4c84056b2acf362 Mon Sep 17 00:00:00 2001 From: Tiago Vignatti Date: Wed, 11 Jun 2008 18:10:55 -0300 Subject: [PATCH] No need for inputPending field in xf86Info. --- hw/xfree86/common/xf86Events.c | 4 ---- hw/xfree86/common/xf86Globals.c | 1 - hw/xfree86/common/xf86Init.c | 1 - hw/xfree86/common/xf86Privstr.h | 1 - 4 files changed, 7 deletions(-) diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c index f408fc929..a7f9578b8 100644 --- a/hw/xfree86/common/xf86Events.c +++ b/hw/xfree86/common/xf86Events.c @@ -236,8 +236,6 @@ ProcessInputEvents () } #endif - xf86Info.inputPending = FALSE; - mieqProcessInputEvents(); /* FIXME: This is a problem if we have multiple pointers */ @@ -499,8 +497,6 @@ xf86Wakeup(pointer blockData, int err, pointer pReadmask) } if (xf86VTSwitchPending()) xf86VTSwitch(); - - if (xf86Info.inputPending) ProcessInputEvents(); } diff --git a/hw/xfree86/common/xf86Globals.c b/hw/xfree86/common/xf86Globals.c index 14bef39ea..19ed4e747 100644 --- a/hw/xfree86/common/xf86Globals.c +++ b/hw/xfree86/common/xf86Globals.c @@ -103,7 +103,6 @@ xf86InfoRec xf86Info = { NULL, /* mouseLocal */ -1, /* lastEventTime */ FALSE, /* vtRequestsPending */ - FALSE, /* inputPending */ FALSE, /* dontVTSwitch */ FALSE, /* dontZap */ FALSE, /* dontZoom */ diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index a2607e3cb..46c4a96b8 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -1117,7 +1117,6 @@ InitInput(argc, argv) InputInfoPtr pInfo; xf86Info.vtRequestsPending = FALSE; - xf86Info.inputPending = FALSE; /* Call the PreInit function for each input device instance. */ for (pDev = xf86ConfigLayout.inputs; pDev && *pDev; pDev++) { diff --git a/hw/xfree86/common/xf86Privstr.h b/hw/xfree86/common/xf86Privstr.h index 318a59f19..0601c0d8f 100644 --- a/hw/xfree86/common/xf86Privstr.h +++ b/hw/xfree86/common/xf86Privstr.h @@ -85,7 +85,6 @@ typedef struct { /* event handler part */ int lastEventTime; Bool vtRequestsPending; - Bool inputPending; Bool dontVTSwitch; Bool dontZap; Bool dontZoom;