(self, screen, monitorid, config)
return workarea
get the monitor workarea taking into account config padding.
get the monitor workarea taking into account config padding.
get the monitor workarea taking into account config padding .
def _get_workarea(self, screen, monitorid, config):
        """ get the monitor workarea taking into account config padding. """
        workarea = screen.get_monitor_workarea(monitorid)
        workarea.x += config['padding'][3]
        workarea.y += config['padding'][0]
        workarea.width -= config['padding'][3] + config['padding'][1]
        workarea.height -= config['padding'][0] + config['padding'][2]
        return workarea
def _get_workarea ( self , screen , monitorid , config ) : workarea = screen . get_monitor_workarea ( monitorid ) workarea . x += config [ 'padding' ] [ 3 ] workarea . y += config [ 'padding' ] [ 0 ] workarea . width -= config [ 'padding' ] [ 3 ] + config [ 'padding' ] [ 1 ] workarea . height -= config [ 'padding' ] [ 0 ] + config [ 'padding' ] [ 2 ] return workarea