From: David Herrmann Date: Mon, 1 Oct 2012 11:54:08 +0000 (+0200) Subject: uterm: vt: fix skipping real_activate() when being inactive X-Git-Tag: kmscon-7~426 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a24b2e54787958f187b6e51f25d90a525298e023;p=platform%2Fupstream%2Fkmscon.git uterm: vt: fix skipping real_activate() when being inactive This is probably a copy&paste error from real_deactivate(). We should skip real_activate() if we are _active_, not if we are _inactive_. Signed-off-by: David Herrmann --- diff --git a/src/uterm_vt.c b/src/uterm_vt.c index 4ce4633..ec915be 100644 --- a/src/uterm_vt.c +++ b/src/uterm_vt.c @@ -338,7 +338,7 @@ static int real_activate(struct uterm_vt *vt) return -EFAULT; } - if (vts.v_active != vt->real_num) + if (vts.v_active == vt->real_num) return 0; ret = ioctl(vt->real_fd, VT_ACTIVATE, vt->real_num);