#NEWLINE# def configure( self , client , screen ) : #NEWLINE# #INDENT# if ( client is self . focused ) : #NEWLINE# #INDENT# bc = client . group . qtile . colorPixel ( self . border_focus ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# bc = client . group . qtile . colorPixel ( self . border_normal ) #NEWLINE# #UNINDENT# if client . maximized : #NEWLINE# #INDENT# bw = self . max_border_width #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if client . fullscreen : #NEWLINE# #INDENT# bw = self . fullscreen_border_width #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# bw = self . border_width #NEWLINE# #UNINDENT# #UNINDENT# try : #NEWLINE# #INDENT# client . float_x #NEWLINE# bc . float_y #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# x = ( screen . x + ( client . x % screen . width ) ) #NEWLINE# x = min ( x , ( screen . x - client . width ) ) #NEWLINE# x = max ( x , screen . x ) #NEWLINE# client . x = x #NEWLINE# y = ( screen . y + ( client . y % screen . height ) ) #NEWLINE# y = min ( y , ( screen . y - client . height ) ) #NEWLINE# y = max ( y , screen . y ) #NEWLINE# client . y = y #NEWLINE# #UNINDENT# client . place ( client . x , client . y , client . width , client . height , bw , bc ) #NEWLINE# client . unhide ( )