This file is indexed.

/usr/share/pyshared/xcb/shape.py is in python-xpyb 1.3.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
#
# This file generated automatically from shape.xml by py_client.py.
# Edit at your peril.
#

import xcb
import cStringIO
from struct import pack, unpack_from
from array import array
import xproto

MAJOR_VERSION = 1
MINOR_VERSION = 1

key = xcb.ExtensionKey('SHAPE')

class SO:
    Set = 0
    Union = 1
    Intersect = 2
    Subtract = 3
    Invert = 4

class SK:
    Bounding = 0
    Clip = 1
    Input = 2

class NotifyEvent(xcb.Event):
    def __init__(self, parent, offset=0):
        xcb.Event.__init__(self, parent, offset)
        (self.shape_kind, self.affected_window, self.extents_x, self.extents_y, self.extents_width, self.extents_height, self.server_time, self.shaped,) = unpack_from('xB2xIhhHHIB11x', parent, offset)

class QueryVersionCookie(xcb.Cookie):
    pass

class QueryVersionReply(xcb.Reply):
    def __init__(self, parent, offset=0):
        xcb.Reply.__init__(self, parent, offset)
        (self.major_version, self.minor_version,) = unpack_from('xx2x4xHH', parent, offset)

class QueryExtentsCookie(xcb.Cookie):
    pass

class QueryExtentsReply(xcb.Reply):
    def __init__(self, parent, offset=0):
        xcb.Reply.__init__(self, parent, offset)
        (self.bounding_shaped, self.clip_shaped, self.bounding_shape_extents_x, self.bounding_shape_extents_y, self.bounding_shape_extents_width, self.bounding_shape_extents_height, self.clip_shape_extents_x, self.clip_shape_extents_y, self.clip_shape_extents_width, self.clip_shape_extents_height,) = unpack_from('xx2x4xBB2xhhHHhhHH', parent, offset)

class InputSelectedCookie(xcb.Cookie):
    pass

class InputSelectedReply(xcb.Reply):
    def __init__(self, parent, offset=0):
        xcb.Reply.__init__(self, parent, offset)
        (self.enabled,) = unpack_from('xB2x4x', parent, offset)

class GetRectanglesCookie(xcb.Cookie):
    pass

class GetRectanglesReply(xcb.Reply):
    def __init__(self, parent, offset=0):
        xcb.Reply.__init__(self, parent, offset)
        (self.ordering, self.rectangles_len,) = unpack_from('xB2x4xI20x', parent, offset)
        offset += 32
        self.rectangles = xcb.List(parent, offset, self.rectangles_len, RECTANGLE, 8)

class shapeExtension(xcb.Extension):

    def QueryVersion(self, ):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2x', ))
        return self.send_request(xcb.Request(buf.getvalue(), 0, False, True),
                                 QueryVersionCookie(),
                                 QueryVersionReply)

    def QueryVersionUnchecked(self, ):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2x', ))
        return self.send_request(xcb.Request(buf.getvalue(), 0, False, False),
                                 QueryVersionCookie(),
                                 QueryVersionReply)

    def RectanglesChecked(self, operation, destination_kind, ordering, destination_window, x_offset, y_offset, rectangles_len, rectangles):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xBBBxIhh', operation, destination_kind, ordering, destination_window, x_offset, y_offset))
        for elt in xcb.Iterator(rectangles, 4, 'rectangles', True):
            buf.write(pack('=hhHH', *elt))
        return self.send_request(xcb.Request(buf.getvalue(), 1, True, True),
                                 xcb.VoidCookie())

    def Rectangles(self, operation, destination_kind, ordering, destination_window, x_offset, y_offset, rectangles_len, rectangles):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xBBBxIhh', operation, destination_kind, ordering, destination_window, x_offset, y_offset))
        for elt in xcb.Iterator(rectangles, 4, 'rectangles', True):
            buf.write(pack('=hhHH', *elt))
        return self.send_request(xcb.Request(buf.getvalue(), 1, True, False),
                                 xcb.VoidCookie())

    def MaskChecked(self, operation, destination_kind, destination_window, x_offset, y_offset, source_bitmap):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xBB2xIhhI', operation, destination_kind, destination_window, x_offset, y_offset, source_bitmap))
        return self.send_request(xcb.Request(buf.getvalue(), 2, True, True),
                                 xcb.VoidCookie())

    def Mask(self, operation, destination_kind, destination_window, x_offset, y_offset, source_bitmap):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xBB2xIhhI', operation, destination_kind, destination_window, x_offset, y_offset, source_bitmap))
        return self.send_request(xcb.Request(buf.getvalue(), 2, True, False),
                                 xcb.VoidCookie())

    def CombineChecked(self, operation, destination_kind, source_kind, destination_window, x_offset, y_offset, source_window):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xBBBxIhhI', operation, destination_kind, source_kind, destination_window, x_offset, y_offset, source_window))
        return self.send_request(xcb.Request(buf.getvalue(), 3, True, True),
                                 xcb.VoidCookie())

    def Combine(self, operation, destination_kind, source_kind, destination_window, x_offset, y_offset, source_window):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xBBBxIhhI', operation, destination_kind, source_kind, destination_window, x_offset, y_offset, source_window))
        return self.send_request(xcb.Request(buf.getvalue(), 3, True, False),
                                 xcb.VoidCookie())

    def OffsetChecked(self, destination_kind, destination_window, x_offset, y_offset):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xB3xIhh', destination_kind, destination_window, x_offset, y_offset))
        return self.send_request(xcb.Request(buf.getvalue(), 4, True, True),
                                 xcb.VoidCookie())

    def Offset(self, destination_kind, destination_window, x_offset, y_offset):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xB3xIhh', destination_kind, destination_window, x_offset, y_offset))
        return self.send_request(xcb.Request(buf.getvalue(), 4, True, False),
                                 xcb.VoidCookie())

    def QueryExtents(self, destination_window):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xI', destination_window))
        return self.send_request(xcb.Request(buf.getvalue(), 5, False, True),
                                 QueryExtentsCookie(),
                                 QueryExtentsReply)

    def QueryExtentsUnchecked(self, destination_window):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xI', destination_window))
        return self.send_request(xcb.Request(buf.getvalue(), 5, False, False),
                                 QueryExtentsCookie(),
                                 QueryExtentsReply)

    def SelectInputChecked(self, destination_window, enable):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xIB3x', destination_window, enable))
        return self.send_request(xcb.Request(buf.getvalue(), 6, True, True),
                                 xcb.VoidCookie())

    def SelectInput(self, destination_window, enable):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xIB3x', destination_window, enable))
        return self.send_request(xcb.Request(buf.getvalue(), 6, True, False),
                                 xcb.VoidCookie())

    def InputSelected(self, destination_window):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xI', destination_window))
        return self.send_request(xcb.Request(buf.getvalue(), 7, False, True),
                                 InputSelectedCookie(),
                                 InputSelectedReply)

    def InputSelectedUnchecked(self, destination_window):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xI', destination_window))
        return self.send_request(xcb.Request(buf.getvalue(), 7, False, False),
                                 InputSelectedCookie(),
                                 InputSelectedReply)

    def GetRectangles(self, window, source_kind):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xIB3x', window, source_kind))
        return self.send_request(xcb.Request(buf.getvalue(), 8, False, True),
                                 GetRectanglesCookie(),
                                 GetRectanglesReply)

    def GetRectanglesUnchecked(self, window, source_kind):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2xIB3x', window, source_kind))
        return self.send_request(xcb.Request(buf.getvalue(), 8, False, False),
                                 GetRectanglesCookie(),
                                 GetRectanglesReply)

_events = {
    0 : NotifyEvent,
}

_errors = {
}

xcb._add_ext(key, shapeExtension, _events, _errors)