~ubuntu-branches/ubuntu/quantal/xorg-server/quantal-proposed

« back to all changes in this revision

Viewing changes to hw/xquartz/darwinXinput.c

  • Committer: Package Import Robot
  • Author(s): Bryce Harrington, Maarten Lankhorst, Bryce Harrington
  • Date: 2012-06-04 19:12:23 UTC
  • mfrom: (0.11.40 sid)
  • Revision ID: package-import@ubuntu.com-20120604191223-7gt8pm5dtw7k340f
Tags: 2:1.12.1.902-1ubuntu1
[ Maarten Lankhorst ]
* Refresh patches to apply on x-server 1.12
  - patch-x-indent.sh from xorg-pkg-tools was used to redo coding style
* Deleted following patches because they have been committed upstream
  - 224_return_BadWindow_not_BadMatch.diff
  - 225_non-root_config_paths.patch
  - 505_query_pointer_touchscreen.patch
  - 506_touchscreen_pointer_emulation_checks.patch
  - 507_touchscreen_fixes.patch
* Non-trivial refresh of 500_pointer_barrier_thresholds.diff, based on 
  xorg-edgers
* Rest was refreshed with patch-x-indent.sh to survive coding style changes
* Add upstream patches for proper device disabling:
  - 510-dix-return-early-from-DisableDevice-if-the-device-is.patch
  - 511-dix-move-freeing-the-sprite-into-a-function.patch
  - 512-dix-free-the-sprite-when-disabling-the-device.patch
  - 513-dix-disable-non-sprite-owners-first-when-disabling-p.patch
  - 514-Xi-drop-forced-unpairing-when-changing-the-hierarchy.patch
  - 515-dix-disable-all-devices-before-shutdown.patch

[ Bryce Harrington ]
* Drop 209_add_legacy_bgnone_option.patch: lightdm and other *dm's have
  switched to the new standard -background option.  No need to continue
  providing the legacy -nr synonym.
* Drop 201_report-real-dpi.patch:  Commented out in series.
* Drop 198_nohwaccess.patch: Rootless-X no longer a development focus
  for us; the patch would need reworked anyway to provide proper
  support.
* Drop 166_nullptr_xinerama_keyrepeat.patch: Fixed differently upstream
  in commit 24e682d0, as verified by original reporter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
/************************************************************
9
9
 
10
 
Copyright 1989, 1998  The Open Group
11
 
 
12
 
Permission to use, copy, modify, distribute, and sell this software and its
13
 
documentation for any purpose is hereby granted without fee, provided that
14
 
the above copyright notice appear in all copies and that both that
15
 
copyright notice and this permission notice appear in supporting
16
 
documentation.
17
 
 
18
 
The above copyright notice and this permission notice shall be included in
19
 
all copies or substantial portions of the Software.
20
 
 
21
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
24
 
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25
 
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26
 
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
 
 
28
 
Except as contained in this notice, the name of The Open Group shall not be
29
 
used in advertising or otherwise to promote the sale, use or other dealings
30
 
in this Software without prior written authorization from The Open Group.
31
 
 
32
 
Copyright 1989 by Hewlett-Packard Company, Palo Alto, California.
33
 
 
34
 
                        All Rights Reserved
35
 
 
36
 
Permission to use, copy, modify, and distribute this software and its
37
 
documentation for any purpose and without fee is hereby granted,
38
 
provided that the above copyright notice appear in all copies and that
39
 
both that copyright notice and this permission notice appear in
40
 
supporting documentation, and that the name of Hewlett-Packard not be
41
 
used in advertising or publicity pertaining to distribution of the
42
 
software without specific, written prior permission.
43
 
 
44
 
HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
45
 
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
46
 
HEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
47
 
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
48
 
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
49
 
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
50
 
SOFTWARE.
51
 
 
52
 
********************************************************/
 
10
   Copyright 1989, 1998  The Open Group
 
11
 
 
12
   Permission to use, copy, modify, distribute, and sell this software and its
 
13
   documentation for any purpose is hereby granted without fee, provided that
 
14
   the above copyright notice appear in all copies and that both that
 
15
   copyright notice and this permission notice appear in supporting
 
16
   documentation.
 
17
 
 
18
   The above copyright notice and this permission notice shall be included in
 
19
   all copies or substantial portions of the Software.
 
20
 
 
21
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
22
   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
23
   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
24
   OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 
25
   AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
26
   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
27
 
 
28
   Except as contained in this notice, the name of The Open Group shall not be
 
29
   used in advertising or otherwise to promote the sale, use or other dealings
 
30
   in this Software without prior written authorization from The Open Group.
 
31
 
 
32
   Copyright 1989 by Hewlett-Packard Company, Palo Alto, California.
 
33
 
 
34
   All Rights Reserved
 
35
 
 
36
   Permission to use, copy, modify, and distribute this software and its
 
37
   documentation for any purpose and without fee is hereby granted,
 
38
   provided that the above copyright notice appear in all copies and that
 
39
   both that copyright notice and this permission notice appear in
 
40
   supporting documentation, and that the name of Hewlett-Packard not be
 
41
   used in advertising or publicity pertaining to distribution of the
 
42
   software without specific, written prior permission.
 
43
 
 
44
   HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 
45
   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 
46
   HEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 
47
   ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 
48
   WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 
49
   ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 
50
   SOFTWARE.
 
51
 
 
52
 ********************************************************/
53
53
 
54
54
#ifdef HAVE_DIX_CONFIG_H
55
55
#include <dix-config.h>
78
78
int
79
79
SetDeviceMode(ClientPtr client, DeviceIntPtr dev, int mode)
80
80
{
81
 
  DEBUG_LOG("SetDeviceMode(%p, %p, %d)\n", client, dev, mode);
 
81
    DEBUG_LOG("SetDeviceMode(%p, %p, %d)\n", client, dev, mode);
82
82
    return BadMatch;
83
83
}
84
84
 
96
96
 
97
97
int
98
98
SetDeviceValuators(ClientPtr client, DeviceIntPtr dev,
99
 
                   int *valuators, int first_valuator, int num_valuators)
 
99
                   int *valuators, int first_valuator, int num_valuators)
100
100
{
101
 
  DEBUG_LOG("SetDeviceValuators(%p, %p, %p, %d, %d)\n", client,
102
 
            dev, valuators, first_valuator, num_valuators);
103
 
  return BadMatch;
 
101
    DEBUG_LOG("SetDeviceValuators(%p, %p, %p, %d, %d)\n", client,
 
102
              dev, valuators, first_valuator, num_valuators);
 
103
    return BadMatch;
104
104
}
105
105
 
106
106
/****************************************************************************
113
113
 
114
114
int
115
115
ChangeDeviceControl(ClientPtr client, DeviceIntPtr dev,
116
 
                    xDeviceCtl * control)
 
116
                    xDeviceCtl * control)
117
117
{
118
118
 
119
 
  DEBUG_LOG("ChangeDeviceControl(%p, %p, %p)\n", client, dev, control);
120
 
  return BadMatch;
 
119
    DEBUG_LOG("ChangeDeviceControl(%p, %p, %p)\n", client, dev, control);
 
120
    return BadMatch;
121
121
}
122
122
 
123
 
 
124
123
/****************************************************************************
125
124
 *
126
125
 * Caller: configAddDevice (and others)
132
131
NewInputDeviceRequest(InputOption *options, InputAttributes *attrs,
133
132
                      DeviceIntPtr *pdev)
134
133
{
135
 
  DEBUG_LOG("NewInputDeviceRequest(%p, %p)\n", options, pdev);
136
 
  return BadValue;
 
134
    DEBUG_LOG("NewInputDeviceRequest(%p, %p)\n", options, pdev);
 
135
    return BadValue;
137
136
}
138
137
 
139
138
/****************************************************************************
146
145
void
147
146
DeleteInputDeviceRequest(DeviceIntPtr dev)
148
147
{
149
 
  DEBUG_LOG("DeleteInputDeviceRequest(%p)\n", dev);
 
148
    DEBUG_LOG("DeleteInputDeviceRequest(%p)\n", dev);
150
149
}
151