aboutsummaryrefslogtreecommitdiffstats
path: root/monitor-get-edid-using-vbe.c
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-07-07 18:07:47 +0000
committerOlivier Blin <oblin@mandriva.com>2008-07-07 18:07:47 +0000
commit9ff53f61bb9bdb6a5edae118ed067e3c636ecaac (patch)
treecb292e57d2a2d6d2180d121dc90411990a94ce6b /monitor-get-edid-using-vbe.c
parenta346bb966a66953049e2089625550f167ba3f7c7 (diff)
downloadmonitor-edid-9ff53f61bb9bdb6a5edae118ed067e3c636ecaac.tar
monitor-edid-9ff53f61bb9bdb6a5edae118ed067e3c636ecaac.tar.gz
monitor-edid-9ff53f61bb9bdb6a5edae118ed067e3c636ecaac.tar.bz2
monitor-edid-9ff53f61bb9bdb6a5edae118ed067e3c636ecaac.tar.xz
monitor-edid-9ff53f61bb9bdb6a5edae118ed067e3c636ecaac.zip
monitor-get-edid-using-vbe: fix checking the current vt
Diffstat (limited to 'monitor-get-edid-using-vbe.c')
-rw-r--r--monitor-get-edid-using-vbe.c2
1 files changed, 1 insertions, 1 deletions
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 */