#NEWLINE# def configure( self , win , screen ) : #NEWLINE# #INDENT# if ( ( not self . last_screen ) or ( self . last_screen != screen ) ) : #NEWLINE# #INDENT# self . last_screen = screen #NEWLINE# self . dirty = True #NEWLINE# #UNINDENT# if ( self . last_size and ( not self . dirty ) ) : #NEWLINE# #INDENT# if ( ( screen . width != self . last_size [ 0 ] ) or ( screen . height != self . last_size [ 1 ] ) ) : #NEWLINE# #INDENT# self . dirty = True #NEWLINE# #UNINDENT# #UNINDENT# if self . dirty : #NEWLINE# #INDENT# gi = GridInfo ( self . ratio , len ( self . clients ) , screen . width , screen . height ) #NEWLINE# self . last_size = ( screen . width , screen . height ) #NEWLINE# if self . fancy : #NEWLINE# #INDENT# method = gi . get_sizes_advanced #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# method = gi . get_sizes #NEWLINE# #UNINDENT# self . layout_info = method ( screen . width , screen . height , screen . x , screen . y ) #NEWLINE# self . dirty = False #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# idx = self . clients . index ( win ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# win . hide ( ) #NEWLINE# return #NEWLINE# #UNINDENT# ( x , y , w , h ) = self . layout_info [ idx ] #NEWLINE# if ( w is self . focused ) : #NEWLINE# #INDENT# bc = self . group . qtile . colorPixel ( self . border_focus ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# bc = self . group . qtile . colorPixel ( self . border_normal ) #NEWLINE# #UNINDENT# win . place ( x , y , ( w - ( self . border_width * 2 ) ) , ( h - ( self . border_width * 2 ) ) , self . border_width , bc , margin = self . margin ) #NEWLINE# win . unhide ( )