From patchwork Sun Mar 1 22:40:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 45277 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D0D44214A2 for ; Sun, 1 Mar 2015 22:48:15 +0000 (UTC) Received: by wibbs8 with SMTP id bs8sf6933677wib.2 for ; Sun, 01 Mar 2015 14:48:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=fJyY9hOuAh+RBCZnonfwfjFeJ37137cDYly0eMyHnJM=; b=lYfMaw7RWXjUfpREWWTJD/wr4bnQG0VngqpFWBKAU+GdBRXMBaTbM4/rVeREptv9RA O4UJTF7kDkqf8Baa3Wme6PPksfC6unr58nlVd/n/PmFPVsynw0AGl0LzhxrYscFGWtBp rbaUcjobGBCSCZHbtI/nePpS4aT4Kb2fHcSGJ6Zkwg4gPDHLE2fCBBWPX6ZBFhygre1m QLAN/ddptT/hK+CNDEgpIAg2vXiHkhkFJvtKUiAeA5nBl8Jhs7wlLcs2jb6KJSCAfR36 iD2pSArpcBPSJWwPdO2E5/hA5rvR9q1lLoAvfOSO+B+d/4/fvtc/RD616H/PSnxg9Lvr 045A== X-Gm-Message-State: ALoCoQnhDq7wVBfuqsKbV9Ih0I0TEhrprKC1igYwGK41Z4HYAe1p9S/VXyf/0bH3hirqX85b0RDc X-Received: by 10.112.224.12 with SMTP id qy12mr2269386lbc.10.1425250095151; Sun, 01 Mar 2015 14:48:15 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.233 with SMTP id y9ls370987lae.9.gmail; Sun, 01 Mar 2015 14:48:14 -0800 (PST) X-Received: by 10.152.6.100 with SMTP id z4mr21469149laz.114.1425250094882; Sun, 01 Mar 2015 14:48:14 -0800 (PST) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id am10si7658243lac.40.2015.03.01.14.48.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Mar 2015 14:48:14 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbiz11 with SMTP id z11so662839lbi.13 for ; Sun, 01 Mar 2015 14:48:14 -0800 (PST) X-Received: by 10.112.64.193 with SMTP id q1mr21846664lbs.88.1425250094745; Sun, 01 Mar 2015 14:48:14 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp5186977lbj; Sun, 1 Mar 2015 14:48:14 -0800 (PST) X-Received: by 10.70.51.197 with SMTP id m5mr42471743pdo.90.1425249680465; Sun, 01 Mar 2015 14:41:20 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fm8si8508992pab.33.2015.03.01.14.41.19; Sun, 01 Mar 2015 14:41:20 -0800 (PST) Received-SPF: none (google.com: stable-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753333AbbCAWlF (ORCPT + 1 other); Sun, 1 Mar 2015 17:41:05 -0500 Received: from ip4-83-240-67-251.cust.nbox.cz ([83.240.67.251]:60720 "EHLO ip4-83-240-18-248.cust.nbox.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753326AbbCAWkk (ORCPT ); Sun, 1 Mar 2015 17:40:40 -0500 Received: from ku by ip4-83-240-18-248.cust.nbox.cz with local (Exim 4.85) (envelope-from ) id 1YSCXP-0003Vn-C8; Sun, 01 Mar 2015 23:40:39 +0100 From: Jiri Slaby To: stable@vger.kernel.org Cc: Nicolas Pitre , Nicolas Pitre , Dave Mielke , Jiri Slaby Subject: [patch added to the 3.12 stable tree] vt: provide notifications on selection changes Date: Sun, 1 Mar 2015 23:40:34 +0100 Message-Id: <1425249638-13214-43-git-send-email-jslaby@suse.cz> X-Mailer: git-send-email 2.3.0 In-Reply-To: <1425249638-13214-1-git-send-email-jslaby@suse.cz> References: <1425249638-13214-1-git-send-email-jslaby@suse.cz> Sender: stable-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: stable@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Nicolas Pitre This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. =============== commit 19e3ae6b4f07a87822c1c9e7ed99d31860e701af 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: Nicolas Pitre Cc: Dave Mielke Signed-off-by: Jiri Slaby --- drivers/tty/vt/vt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 239eae55600a..e341fd52a80d 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -498,6 +498,7 @@ void invert_screen(struct vc_data *vc, int offset, int count, int viewed) #endif if (DO_UPDATE(vc)) do_update_region(vc, (unsigned long) p, count); + notify_update(vc); } /* used by selection: complement pointer position */ @@ -514,6 +515,7 @@ void complement_pos(struct vc_data *vc, int offset) scr_writew(old, screenpos(vc, old_offset, 1)); if (DO_UPDATE(vc)) vc->vc_sw->con_putc(vc, old, oldy, oldx); + notify_update(vc); } old_offset = offset; @@ -531,8 +533,8 @@ void complement_pos(struct vc_data *vc, int offset) oldy = (offset >> 1) / vc->vc_cols; vc->vc_sw->con_putc(vc, new, oldy, oldx); } + notify_update(vc); } - } static void insert_char(struct vc_data *vc, unsigned int nr)