Change the window border color if a bell occurs in an unfocused window. Can be disabled by setting the bell_border_color to be the same as the inactive_border_color.

This commit is contained in:
Kovid Goyal
2018-05-02 22:02:45 +05:30
parent efcd3a5df7
commit f2afba2ef4
9 changed files with 19 additions and 6 deletions

View File

@@ -64,7 +64,7 @@ class Borders:
g = w.geometry
if bw > 0 and draw_window_borders:
# Draw the border rectangles
color = 2 if w is active_window else 4
color = 2 if w is active_window else (16 if w.needs_attention else 4)
border(
self.os_window_id, self.tab_id,
color, bw, g.left - fw, g.top - fw, g.right + fw,