[hackers] [dvtm] [PATCH] Redraw border with URGENT_ATTR as soon as possible

From: Marcel Rodrigues <marcelgmr_AT_gmail.com>
Date: Wed, 5 Aug 2015 22:08:53 -0300

When a visible window other than the selected one receives a bell
('\a'), I expect its border to be redrawn immediately with the
corresponding attributes (URGENT_ATTR). Currently this does not
happen: the border will remain the same until draw_border() is
eventually called as a result of other events, such as layout
changing. The following patch is intended to fix this:

diff --git a/dvtm.c b/dvtm.c
index 7170f3b..373767f 100644
--- a/dvtm.c
+++ b/dvtm.c
_AT_@ -626,6 +626,8 @@ term_urgent_handler(Vt *term) {
         printf("\a");
         fflush(stdout);
         drawbar();
+ if (!isarrange(fullscreen) && sel != c && isvisible(c))
+ draw_border(c);
 }

 static void
Received on Thu Aug 06 2015 - 03:08:53 CEST

This archive was generated by hypermail 2.3.0 : Thu Aug 06 2015 - 03:12:10 CEST