]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
VT notifier fix for VT switch
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 5 Mar 2008 00:50:23 +0000 (00:50 +0000)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:47:34 +0000 (11:47 -0700)
commit: 8182ec49a73729334f5a6c65a607ba7009ebd6d6

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/vt.c

index 7a5badfb7d846e00d85dbbd2c082461264b7a660..93cfe4a6cf36732bcda6715c92a7700011494b5e 100644 (file)
@@ -702,6 +702,7 @@ void redraw_screen(struct vc_data *vc, int is_switch)
        if (is_switch) {
                set_leds();
                compute_shiftstate();
+               notify_update(vc);
        }
 }