This file is indexed.

/usr/share/pyshared/tritium/xinerama.py is in tritium 0.3.8-2.

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
from Xlib.protocol import request, rq

XineramaScreenInfo = rq.Struct(
    rq.Int16('x_org'),
    rq.Int16('y_org'),
    rq.Card16('width'),
    rq.Card16('height') )

class XineramaQueryScreenInfo(rq.ReplyRequest):
    _request = rq.Struct( rq.Card8( 'opcode' ), 
                          rq.Opcode( 5 ), 
                          rq.RequestLength() )

    _reply = rq.Struct( rq.Int8( 'type' ),
                        rq.Pad( 1 ),
                        rq.Card16( 'sequence_number' ),
                        rq.Card32( 'length' ),
                        rq.LengthOf( 'screen_info', 4 ), 
                        rq.Pad( 20 ),
                        rq.List( 'screen_info', XineramaScreenInfo ) )

class Xinerama(object):
    def __init__( self, display ):
        self.extension = display.query_extension( "XINERAMA" )
    
    def get_screen_info( self ):
        if self.extension:
            infos = XineramaQueryScreenInfo( opcode = self.extension.major_opcode )
            if infos:
                return infos.screen_info