aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--monitor-get-edid-using-vbe.c2
2 files changed, 3 insertions, 1 deletions
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, &current) == 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 */