2008-03-21 23:09:46

by Chris Wright

[permalink] [raw]
Subject: [patch 53/76] VT notifier fix for VT switch

-stable review patch. If anyone has any objections, please let us know.
---------------------

From: Samuel Thibault <[email protected]>

VT notifier callbacks need to be aware of console switches. This is already
partially done from console_callback(), but at that time fg_console, cursor
positions, etc. are not yet updated and hence screen readers fetch the old
values.

This adds an update notify after all of the values are updated in
redraw_screen(vc, 1).

Signed-off-by: Samuel Thibault <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Signed-off-by: Chris Wright <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/char/vt.c | 1 +
1 file changed, 1 insertion(+)

--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -702,6 +702,7 @@ void redraw_screen(struct vc_data *vc, i
if (is_switch) {
set_leds();
compute_shiftstate();
+ notify_update(vc);
}
}


--