aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2015-01-23 17:07:21 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-02 13:09:54 -0500
commit19e3ae6b4f07a87822c1c9e7ed99d31860e701af (patch)
treece58f6c16b20c531c794157e047530148a4a1bfa
parent67dc0d4758e5ced978bb30e8af11bc42cabfa77c (diff)
vt: provide notifications on selection changes
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: Nicolas Pitre <nico@linaro.org> Cc: Dave Mielke <dave@mielke.cc> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/vt/vt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 5d36c2358b47..6e00572cbeb9 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -500,6 +500,7 @@ void invert_screen(struct vc_data *vc, int offset, int count, int viewed)
500#endif 500#endif
501 if (DO_UPDATE(vc)) 501 if (DO_UPDATE(vc))
502 do_update_region(vc, (unsigned long) p, count); 502 do_update_region(vc, (unsigned long) p, count);
503 notify_update(vc);
503} 504}
504 505
505/* used by selection: complement pointer position */ 506/* used by selection: complement pointer position */
@@ -516,6 +517,7 @@ void complement_pos(struct vc_data *vc, int offset)
516 scr_writew(old, screenpos(vc, old_offset, 1)); 517 scr_writew(old, screenpos(vc, old_offset, 1));
517 if (DO_UPDATE(vc)) 518 if (DO_UPDATE(vc))
518 vc->vc_sw->con_putc(vc, old, oldy, oldx); 519 vc->vc_sw->con_putc(vc, old, oldy, oldx);
520 notify_update(vc);
519 } 521 }
520 522
521 old_offset = offset; 523 old_offset = offset;
@@ -533,8 +535,8 @@ void complement_pos(struct vc_data *vc, int offset)
533 oldy = (offset >> 1) / vc->vc_cols; 535 oldy = (offset >> 1) / vc->vc_cols;
534 vc->vc_sw->con_putc(vc, new, oldy, oldx); 536 vc->vc_sw->con_putc(vc, new, oldy, oldx);
535 } 537 }
538 notify_update(vc);
536 } 539 }
537
538} 540}
539 541
540static void insert_char(struct vc_data *vc, unsigned int nr) 542static void insert_char(struct vc_data *vc, unsigned int nr)