'Handle xrandr events'

def handle_ConfigureNotify(self, e):

    screen = self.currentScreen
    if ((e.window == self.root.wid) and (e.width != screen.width) and (e.height != screen.height)):
        screen.resize(0, 0, e.width, e.height)
