Somewhat fixed randr - it does not crash when rotating screen, but mouse cursor is off.