Only try to x-select-text when in graphic mode