~ubuntu-branches/ubuntu/edgy/xorg-server/edgy-updates

« back to all changes in this revision

Viewing changes to hw/xfree86/common/xf86Events.c

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-25 20:06:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725200628-gjmmd9gxfxdc4ejs
Tags: 1:1.1.1-0ubuntu1
* New Upstream version
* Changed Build-Depends from mesa-swrast-source to mesa-swx11-source,
  following Debian package nomenclature
* Re-did 12_security_policy_in_etc.diff for 1.1.1
* Dropped 15_security_allocate_local.diff (applied upstream)
* Dropped 16_SECURITY_setuid.diff (applied upstream)
* Dropped 000_ubuntu_fix_read_kernel_mapping.patch (applied upstream)
* Dropped 002_ubuntu_fix_for_certain_intel_chipsets.patch (applied upstream)
* Updated versioned Build-Depends on mesa-swx11-source to version
  6.5.0.cvs.20060725-0ubuntu1
* Added arrayobj.c, arrayobj.h, bitset.h & rbadaptors.h to
  GL/symlink-mesa.sh (linked from mesa-swx11-source)
* Added arrayobj.c to default build target on GL/mesa/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Events.c,v 3.159 2003/11/22 04:22:11 dawes Exp $ */
2
1
/*
3
2
 * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany.
4
3
 *
48
47
 * authorization from the copyright holder(s) and author(s).
49
48
 */
50
49
 
51
 
/* $XConsortium: xf86Events.c /main/46 1996/10/25 11:36:30 kaleb $ */
52
 
/* $XdotOrg: xserver/xorg/hw/xfree86/common/xf86Events.c,v 1.21 2005/11/08 06:33:28 jkj Exp $ */
53
 
 
54
50
/* [JCH-96/01/21] Extended std reverse map to four buttons. */
55
51
 
56
52
#ifdef HAVE_XORG_CONFIG_H
216
212
 *      Set the lastEventTime to now.
217
213
 */
218
214
 
219
 
void
 
215
_X_EXPORT void
220
216
SetTimeSinceLastInputEvent()
221
217
{
222
218
  xf86Info.lastEventTime = GetTimeInMillis();
1102
1098
 
1103
1099
#define ModifierIsSet(k) ((modifiers & (k)) == (k))
1104
1100
 
1105
 
Bool
 
1101
_X_EXPORT Bool
1106
1102
xf86CommonSpecialKey(int key, Bool down, int modifiers)
1107
1103
{
1108
1104
  if ((!ModifierIsSet(ShiftMask)) &&
1242
1238
 * xf86AddEnabledDevice --
1243
1239
 *    
1244
1240
 */
1245
 
void
 
1241
_X_EXPORT void
1246
1242
xf86AddEnabledDevice(InputInfoPtr pInfo)
1247
1243
{
1248
1244
    if (!xf86InstallSIGIOHandler (pInfo->fd, xf86SigioReadInput, pInfo)) {
1254
1250
 * xf86RemoveEnabledDevice --
1255
1251
 *    
1256
1252
 */
1257
 
void
 
1253
_X_EXPORT void
1258
1254
xf86RemoveEnabledDevice(InputInfoPtr pInfo)
1259
1255
{
1260
1256
    if (!xf86RemoveSIGIOHandler (pInfo->fd)) {
1264
1260
 
1265
1261
static int *xf86SignalIntercept = NULL;
1266
1262
 
1267
 
void
 
1263
_X_EXPORT void
1268
1264
xf86InterceptSignals(int *signo)
1269
1265
{
1270
1266
    if ((xf86SignalIntercept = signo))
1273
1269
 
1274
1270
static void (*xf86SigIllHandler)(void) = NULL;
1275
1271
 
1276
 
void 
 
1272
_X_EXPORT void 
1277
1273
xf86InterceptSigIll(void (*sigillhandler)(void))
1278
1274
{
1279
1275
    xf86SigIllHandler = sigillhandler;
1482
1478
#ifdef XF86BIGFONT
1483
1479
  XF86BigfontCleanup();
1484
1480
#endif
1485
 
#if defined(XFree86LOADER)
1486
 
  if (xf86Initialising)
1487
 
      LoaderCheckUnresolved(LD_RESOLV_IFDONE);
1488
 
  ErrorF("\n"
1489
 
         "   *** If unresolved symbols were reported above, they might not\n"
1490
 
         "   *** be the reason for the server aborting.\n");
1491
 
#endif
1492
1481
 
1493
1482
  xorg_backtrace();
1494
1483
    
1671
1660
 
1672
1661
/* Input handler registration */
1673
1662
 
1674
 
pointer
 
1663
_X_EXPORT pointer
1675
1664
xf86AddInputHandler(int fd, InputHandlerProc proc, pointer data)
1676
1665
{
1677
1666
    IHPtr ih;
1696
1685
    return ih;
1697
1686
}
1698
1687
 
1699
 
int
 
1688
_X_EXPORT int
1700
1689
xf86RemoveInputHandler(pointer handler)
1701
1690
{
1702
1691
    IHPtr ih, p;
1724
1713
    return fd;
1725
1714
}
1726
1715
 
1727
 
void
 
1716
_X_EXPORT void
1728
1717
xf86DisableInputHandler(pointer handler)
1729
1718
{
1730
1719
    IHPtr ih;
1738
1727
        RemoveEnabledDevice(ih->fd);
1739
1728
}
1740
1729
 
1741
 
void
 
1730
_X_EXPORT void
1742
1731
xf86EnableInputHandler(pointer handler)
1743
1732
{
1744
1733
    IHPtr ih;
1755
1744
/*
1756
1745
 * As used currently by the DRI, the return value is ignored.
1757
1746
 */
1758
 
Bool
 
1747
_X_EXPORT Bool
1759
1748
xf86EnableVTSwitch(Bool new)
1760
1749
{
1761
1750
    static Bool def = TRUE;