VT notifier fix for VT switch
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 4 Mar 2008 22:28:36 +0000 (14:28 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Mar 2008 00:35:11 +0000 (16:35 -0800)
commit8182ec49a73729334f5a6c65a607ba7009ebd6d6
tree92143e1e4129e8c290c361654392b3ce1e3f1851
parentbe852795e1c8d3829ddf3cb1ce806113611fa555
VT notifier fix for VT switch

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 <samuel.thibault@ens-lyon.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/vt.c