]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[terminal] drop next_active_vt
authorScott James Remnant <scott@ubuntu.com>
Thu, 18 Mar 2010 04:32:26 +0000 (04:32 +0000)
committerScott James Remnant <scott@ubuntu.com>
Thu, 18 Mar 2010 19:56:46 +0000 (19:56 +0000)
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.

src/libply-splash-core/ply-terminal.c

index e0baf2e0b11c0a6877cb604abd29ac87cc3dc508..3e54075aad7febad3c0ed351882cece044f5ec77 100644 (file)
@@ -65,7 +65,6 @@ struct _ply_terminal
   char *name;
   int   fd;
   int   vt_number;
-  int   next_active_vt;
 
   ply_list_t *vt_change_closures;
   ply_fd_watch_t *fd_watch;
@@ -336,12 +335,6 @@ on_leave_vt (ply_terminal_t *terminal)
 {
   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);
 }
@@ -688,8 +681,6 @@ set_active_vt (ply_terminal_t *terminal,
   if (ioctl (terminal->fd, VT_ACTIVATE, vt_number) < 0)
     return false;
 
-  terminal->next_active_vt = vt_number;
-
   return true;
 }