diff options
-rw-r--r-- | Xext/xevie.c | 24 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | exa/exa.c | 2 | ||||
-rw-r--r-- | hw/dmx/dmxinit.c | 11 | ||||
-rw-r--r-- | hw/kdrive/src/kxv.c | 2 | ||||
-rw-r--r-- | hw/vfb/InitOutput.c | 11 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Io.c | 29 | ||||
-rw-r--r-- | hw/xnest/GetTime.c | 51 | ||||
-rw-r--r-- | hw/xnest/Makefile.am | 1 | ||||
-rw-r--r-- | hw/xprint/ddxInit.c | 11 | ||||
-rw-r--r-- | hw/xwin/InitOutput.c | 9 | ||||
-rw-r--r-- | include/dix-config.h.in | 3 | ||||
-rw-r--r-- | include/kdrive-config.h.in | 3 | ||||
-rw-r--r-- | os/utils.c | 8 |
14 files changed, 28 insertions, 139 deletions
diff --git a/Xext/xevie.c b/Xext/xevie.c index ccc12371a..41fdd1d4b 100644 --- a/Xext/xevie.c +++ b/Xext/xevie.c @@ -59,7 +59,9 @@ of the copyright holder. #define NoSuchEvent 0x80000000 +#ifdef XKB extern Bool noXkbExtension; +#endif extern int xeviegrabState; static int ProcDispatch (register ClientPtr client), SProcDispatch (register ClientPtr client); @@ -201,12 +203,14 @@ int ProcStart (register ClientPtr client) return BadAlloc; } else return BadAccess; +#ifdef XKB if (!noXkbExtension) { if (!XevieStart()) { DeleteCallback(&ClientStateCallback,XevieClientStateCallback,NULL); return BadAlloc; } } +#endif xevieModifiersOn = FALSE; @@ -255,19 +259,23 @@ int ProcSend (register ClientPtr client) case KeyPress: case KeyRelease: xevieKBEventSent = 1; - if(noXkbExtension) - CoreProcessKeyboardEvent (xE, xeviekb, 1); - else +#ifdef XKB + if(!noXkbExtension) doSendEvent(xE, inputInfo.keyboard); + else +#endif + CoreProcessKeyboardEvent (xE, xeviekb, 1); break; case ButtonPress: case ButtonRelease: case MotionNotify: xevieEventSent = 1; - if(noXkbExtension) - CoreProcessPointerEvent(xE, xeviemouse, 1); - else +#ifdef XKB + if(!noXkbExtension) doSendEvent(xE, inputInfo.pointer); + else +#endif + CoreProcessPointerEvent(xE, xeviemouse, 1); break; default: break; @@ -464,6 +472,7 @@ XevieKbdProcessInputProc(xEvent *xE, DeviceIntPtr dev, int count) xE->u.keyButtonPointer.state = keyc->state | inputInfo.pointer->button->state; /* fix bug: sequence lost in Xlib */ xE->u.u.sequenceNumber = clients[xevieClientIndex]->sequence; +#ifdef XKB /* fix for bug5092586 */ if(!noXkbExtension) { switch(xE->u.u.type) { @@ -471,6 +480,7 @@ XevieKbdProcessInputProc(xEvent *xE, DeviceIntPtr dev, int count) case KeyRelease: *kptr &= ~bit; break; } } +#endif keycq[keycqHead].time = xE->u.keyButtonPointer.time; memcpy(keycq[keycqHead].keyc, keyc, sizeof(KeyClassRec) - sizeof(KeyClassPtr)); memcpy(keycq[keycqHead].keyc->xkbInfo, keyc->xkbInfo, sizeof(XkbSrvInfoRec)); @@ -525,6 +535,7 @@ XevieEnd(int clientIndex) { if (!clientIndex || clientIndex == xevieClientIndex) { +#ifdef XKB if(!noXkbExtension) { XevieRemove(inputInfo.keyboard,NULL); @@ -540,6 +551,7 @@ XevieEnd(int clientIndex) inputInfo.pointer->public.realInputProc = CoreProcessPointerEvent; XkbSetExtension(inputInfo.pointer,ProcessPointerEvent); } +#endif xevieFlag = 0; xevieClientIndex = 0; diff --git a/configure.ac b/configure.ac index 51b634eb7..a2af59990 100644 --- a/configure.ac +++ b/configure.ac @@ -469,7 +469,7 @@ AC_MSG_RESULT([$SETUID]) AM_CONDITIONAL(INSTALL_SETUID, [test "x$SETUID" = "xyes"]) dnl Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro -dnl was not expanded, since libX11 with no transport types is rather useless. +dnl was not expanded, since xorg-server with no transport types is rather useless. dnl dnl If you're seeing an error here, be sure you installed the lib/xtrans module dnl first and if it's not in the default location, that you set the ACLOCAL @@ -606,7 +606,9 @@ exaDriverInit (ScreenPtr pScreen, } #endif +#ifdef COMPOSITE miDisableCompositeWrapper(pScreen); +#endif /* * Hookup offscreen pixmaps diff --git a/hw/dmx/dmxinit.c b/hw/dmx/dmxinit.c index e7f04df16..9c5356ed5 100644 --- a/hw/dmx/dmxinit.c +++ b/hw/dmx/dmxinit.c @@ -1046,14 +1046,3 @@ void ddxUseMsg(void) ErrorF(" Ctrl-Alt-q Quit (core devices only)\n"); ErrorF(" Ctrl-Alt-F* Switch to VC (local only)\n"); } - -#ifdef DDXTIME -/** Return wall-clock time in milliseconds. */ -CARD32 GetTimeInMillis(void) -{ - struct timeval tp; - - gettimeofday(&tp, 0); - return tp.tv_sec * 1000 + tp.tv_usec / 1000; -} -#endif diff --git a/hw/kdrive/src/kxv.c b/hw/kdrive/src/kxv.c index 8580dc2ee..4e672f16f 100644 --- a/hw/kdrive/src/kxv.c +++ b/hw/kdrive/src/kxv.c @@ -1814,7 +1814,7 @@ KdXVCopyPackedData(KdScreenInfo *screen, CARD8 *src, CARD8 *dst, int randr, src = src + top * srcDown + left * srcRight; w >>= 1; - srcRight >>= 1; + /* srcRight >>= 1; */ srcNext = srcRight >> 1; while (h--) { CARD16 *s = (CARD16 *)src; diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c index 212f79b7c..46e956ca1 100644 --- a/hw/vfb/InitOutput.c +++ b/hw/vfb/InitOutput.c @@ -450,17 +450,6 @@ ddxProcessArgument(int argc, char *argv[], int i) return 0; } -#ifdef DDXTIME /* from ServerOSDefines */ -CARD32 -GetTimeInMillis() -{ - struct timeval tp; - - X_GETTIMEOFDAY(&tp); - return(tp.tv_sec * 1000) + (tp.tv_usec / 1000); -} -#endif - static ColormapPtr InstalledMaps[MAXSCREENS]; static int diff --git a/hw/xfree86/common/xf86Io.c b/hw/xfree86/common/xf86Io.c index 4dbbd7e93..318b24584 100644 --- a/hw/xfree86/common/xf86Io.c +++ b/hw/xfree86/common/xf86Io.c @@ -470,32 +470,3 @@ searchdone: } return (Success); } - -#if defined(DDXTIME) && !defined(QNX4) -/* - * These are getting tossed in here until I can think of where - * they really belong - */ -#define HALFMONTH ((unsigned long) 1<<31) -_X_EXPORT CARD32 -GetTimeInMillis() -{ - struct timeval tp; - register CARD32 val; - register INT32 diff; - static CARD32 oldval = 0; - static CARD32 time = 0; - - gettimeofday(&tp, 0); - val = (tp.tv_sec * 1000) + (tp.tv_usec / 1000); - if (oldval) { - diff = val - oldval; - if (diff > 0) - time += diff; - } - oldval = val; - - return time; -} -#endif /* DDXTIME && !QNX4 */ - diff --git a/hw/xnest/GetTime.c b/hw/xnest/GetTime.c deleted file mode 100644 index bdcc6beae..000000000 --- a/hw/xnest/GetTime.c +++ /dev/null @@ -1,51 +0,0 @@ -/* $Xorg: GetTime.c,v 1.3 2000/08/17 19:53:28 cpqbld Exp $ */ -/* - -Copyright (c) 1993 X Consortium - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of the X Consortium shall -not be used in advertising or otherwise to promote the sale, use or -other dealings in this Software without prior written authorization -from the X Consortium. - -*/ -/* $XFree86$ */ - - -#ifdef HAVE_XNEST_CONFIG_H -#include <xnest-config.h> -#endif - -#include <X11/Xos.h> -#include "os.h" -#include <time.h> - -#ifdef DDXTIME -CARD32 -GetTimeInMillis() -{ - struct timeval tp; - - X_GETTIMEOFDAY(&tp); - return(tp.tv_sec * 1000) + (tp.tv_usec / 1000); -} -#endif diff --git a/hw/xnest/Makefile.am b/hw/xnest/Makefile.am index b23782eb9..b237788bc 100644 --- a/hw/xnest/Makefile.am +++ b/hw/xnest/Makefile.am @@ -14,7 +14,6 @@ SRCS = Args.c \ GC.c \ GCOps.c \ GCOps.h \ - GetTime.c \ Handlers.c \ Handlers.h \ Init.c \ diff --git a/hw/xprint/ddxInit.c b/hw/xprint/ddxInit.c index d4c0b9a4c..e182ea116 100644 --- a/hw/xprint/ddxInit.c +++ b/hw/xprint/ddxInit.c @@ -245,17 +245,6 @@ ddxBeforeReset(void) } #endif -#ifdef DDXTIME -CARD32 -GetTimeInMillis(void) -{ - struct timeval tp; - - X_GETTIMEOFDAY(&tp); - return(tp.tv_sec * 1000) + (tp.tv_usec / 1000); -} -#endif - /* ddxInitGlobals - called by |InitGlobals| from os/util.c */ void ddxInitGlobals(void) { diff --git a/hw/xwin/InitOutput.c b/hw/xwin/InitOutput.c index c5242cc6f..816dec9ed 100644 --- a/hw/xwin/InitOutput.c +++ b/hw/xwin/InitOutput.c @@ -944,15 +944,6 @@ void ddxInitGlobals(void) { } -#ifdef DDXTIME /* from ServerOSDefines */ -CARD32 -GetTimeInMillis (void) -{ - return GetTickCount (); -} -#endif /* DDXTIME */ - - /* See Porting Layer Definition - p. 20 */ /* * Do any global initialization, then initialize each screen. diff --git a/include/dix-config.h.in b/include/dix-config.h.in index 4c3a4b7a0..2b9f273d7 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -231,6 +231,9 @@ /* Disable some debugging code */ #undef NDEBUG +/* Enable some debugging code */ +#undef DEBUG + /* Name of package */ #undef PACKAGE diff --git a/include/kdrive-config.h.in b/include/kdrive-config.h.in index 9e611c584..2f454d702 100644 --- a/include/kdrive-config.h.in +++ b/include/kdrive-config.h.in @@ -22,4 +22,7 @@ /* Support tslib touchscreen abstraction library */ #undef TSLIB +/* Verbose debugging output hilarity */ +#undef DEBUG + #endif /* _KDRIVE_CONFIG_H_ */ diff --git a/os/utils.c b/os/utils.c index de3e7c9ec..ffa4958cf 100644 --- a/os/utils.c +++ b/os/utils.c @@ -264,12 +264,6 @@ int SyncOn = 0; extern int SelectWaitTime; #endif -#ifdef DEBUG -#ifndef SPECIAL_MALLOC -#define MEMBUG -#endif -#endif - #if defined(SVR4) || defined(__linux__) || defined(CSRG_BASED) #define HAS_SAVED_IDS_AND_SETEUID #endif @@ -545,7 +539,6 @@ GiveUp(int sig) errno = olderrno; } -#ifndef DDXTIME _X_EXPORT CARD32 GetTimeInMillis(void) { @@ -554,7 +547,6 @@ GetTimeInMillis(void) X_GETTIMEOFDAY(&tp); return(tp.tv_sec * 1000) + (tp.tv_usec / 1000); } -#endif _X_EXPORT void AdjustWaitForDelay (pointer waitTime, unsigned long newdelay) |