From 9ff53f61bb9bdb6a5edae118ed067e3c636ecaac Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 7 Jul 2008 18:07:47 +0000 Subject: monitor-get-edid-using-vbe: fix checking the current vt --- NEWS | 2 ++ monitor-get-edid-using-vbe.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index cf4961c..e66605f 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ - monitor-parse-edid: o compute and display the "dpi" of the preferred modelines o handle parsing of EDIDs found in "xrandr --prop" or Xorg.log +- monitor-get-edid-using-vbe: + o fix checking the current vt Version 2.0 - 8 April 2008 diff --git a/monitor-get-edid-using-vbe.c b/monitor-get-edid-using-vbe.c index 822820a..79fb0c3 100644 --- a/monitor-get-edid-using-vbe.c +++ b/monitor-get-edid-using-vbe.c @@ -54,7 +54,7 @@ int main(int argc, char **argv) int fd = open("/dev/console", O_RDWR); if (ioctl(fd, VT_GETSTATE, ¤t) == 0 && - current.v_state >= first_X_console && + current.v_active >= first_X_console && ioctl(fd, VT_ACTIVATE, non_X_console) == 0 && ioctl(fd, VT_WAITACTIVE, non_X_console) == 0) { /* retrying */ -- cgit v1.2.1