Commit e3fc681f authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Ben Hutchings

vt: provide notifications on selection changes

commit 19e3ae6b upstream.

The vcs device's poll/fasync support relies on the vt notifier to signal
changes to the screen content.  Notifier invocations were missing for
changes that comes through the selection interface though.  Fix that.

Tested with BRLTTY 5.2.
Signed-off-by: default avatarNicolas Pitre <nico@linaro.org>
Cc: Dave Mielke <dave@mielke.cc>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 52c28541
...@@ -499,6 +499,7 @@ void invert_screen(struct vc_data *vc, int offset, int count, int viewed) ...@@ -499,6 +499,7 @@ void invert_screen(struct vc_data *vc, int offset, int count, int viewed)
#endif #endif
if (DO_UPDATE(vc)) if (DO_UPDATE(vc))
do_update_region(vc, (unsigned long) p, count); do_update_region(vc, (unsigned long) p, count);
notify_update(vc);
} }
/* used by selection: complement pointer position */ /* used by selection: complement pointer position */
...@@ -515,6 +516,7 @@ void complement_pos(struct vc_data *vc, int offset) ...@@ -515,6 +516,7 @@ void complement_pos(struct vc_data *vc, int offset)
scr_writew(old, screenpos(vc, old_offset, 1)); scr_writew(old, screenpos(vc, old_offset, 1));
if (DO_UPDATE(vc)) if (DO_UPDATE(vc))
vc->vc_sw->con_putc(vc, old, oldy, oldx); vc->vc_sw->con_putc(vc, old, oldy, oldx);
notify_update(vc);
} }
old_offset = offset; old_offset = offset;
...@@ -532,8 +534,8 @@ void complement_pos(struct vc_data *vc, int offset) ...@@ -532,8 +534,8 @@ void complement_pos(struct vc_data *vc, int offset)
oldy = (offset >> 1) / vc->vc_cols; oldy = (offset >> 1) / vc->vc_cols;
vc->vc_sw->con_putc(vc, new, oldy, oldx); vc->vc_sw->con_putc(vc, new, oldy, oldx);
} }
notify_update(vc);
} }
} }
static void insert_char(struct vc_data *vc, unsigned int nr) static void insert_char(struct vc_data *vc, unsigned int nr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment