When we activate our VT, now we actually have it in VT_PROCESS not the
VT we started from, we get the proper signal so don't need an ioctl to
wait until its active.
If we were to leave our VT, we'd get the opposite signal as well and
we don't really care whether we actually get to the other VT, just
that we leave ours.
And this code was in the wrong place anyway.
char *name;
int fd;
int vt_number;
- int next_active_vt;
ply_list_t *vt_change_closures;
ply_fd_watch_t *fd_watch;
{
ioctl (terminal->fd, VT_RELDISP, 1);
- if (terminal->next_active_vt > 0)
- {
- ioctl (terminal->fd, VT_WAITACTIVE, terminal->next_active_vt);
- terminal->next_active_vt = 0;
- }
-
terminal->is_active = false;
do_active_vt_changed (terminal);
}
if (ioctl (terminal->fd, VT_ACTIVATE, vt_number) < 0)
return false;
- terminal->next_active_vt = vt_number;
-
return true;
}