#NEWLINE# def configure( self , client , screen ) : #NEWLINE# #INDENT# pos = 0 #NEWLINE# for col in self . columns : #NEWLINE# #INDENT# if ( client in col ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# pos += col . width #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# client . hide ( ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( client == self . cc . cw ) : #NEWLINE# #INDENT# color = self . group . qtile . colorPixel ( self . border_focus ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# color = self . group . qtile . colorPixel ( self . border_normal ) #NEWLINE# #UNINDENT# if ( ( len ( self . columns ) == 1 ) and ( ( len ( col ) == 1 ) or ( not col . split ) ) ) : #NEWLINE# #INDENT# border = 0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# border = self . border_width #NEWLINE# #UNINDENT# width = int ( ( 0.5 + ( ( ( col . width * screen . width ) * 0.01 ) / len ( self . columns ) ) ) ) #NEWLINE# x = ( screen . x + int ( ( 0.5 + ( ( ( pos * screen . width ) * 0.01 ) / len ( self . columns ) ) ) ) ) #NEWLINE# if col . split : #NEWLINE# #INDENT# pos = 0 #NEWLINE# for c in col : #NEWLINE# #INDENT# if ( client == c ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# pos += border . heights [ c ] #NEWLINE# #UNINDENT# height = int ( ( 0.5 + ( ( ( col . heights [ client ] * screen . height ) * 0.01 ) / len ( col ) ) ) ) #NEWLINE# y = ( screen . y + int ( ( 0.5 + ( ( ( pos * screen . height ) * 0.01 ) / len ( col ) ) ) ) ) #NEWLINE# client . place ( x , y , ( width - ( 2 * border ) ) , ( height - ( 2 * border ) ) , border , color , margin = self . margin ) #NEWLINE# client . unhide ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( client == col . cw ) : #NEWLINE# #INDENT# client . place ( x , screen . y , ( width - ( 2 * border ) ) , ( screen . height - ( 2 * border ) ) , border , color , margin = self . margin ) #NEWLINE# client . unhide ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# client . hide ( )