Skip to content

Commit

Permalink
VT notifier fix for VT switch
Browse files Browse the repository at this point in the history
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]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
sthibaul authored and Linus Torvalds committed Mar 5, 2008
1 parent be85279 commit 8182ec4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/vt.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ void redraw_screen(struct vc_data *vc, int is_switch)
if (is_switch) {
set_leds();
compute_shiftstate();
notify_update(vc);
}
}

Expand Down

0 comments on commit 8182ec4

Please sign in to comment.