sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit fc8c7c4424ffec13838469eff719621af0ac9bb4
parent 6c4c628dd6df5a621f771a2979bdfdad704f6cb9
Author: Matthias Schoth <mschoth@gmail.com>
Date:   Fri, 15 May 2020 14:15:03 +0200

[st][patch][visualbell] Update patch to newest st version 0.8.3

Diffstat:
Mst.suckless.org/patches/visualbell/index.md | 9++++++---
Ast.suckless.org/patches/visualbell/st-visualbell-0.8.3.diff | 53+++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 59 insertions(+), 3 deletions(-)

diff --git a/st.suckless.org/patches/visualbell/index.md b/st.suckless.org/patches/visualbell/index.md @@ -1,6 +1,5 @@ -*Note*: [visual bell 2](../visualbell2) was moved to its own page. - -# Visual bell +visualbell +========== Description ----------- @@ -16,9 +15,13 @@ Download * [st-visualbell-20160727-308bfbf.diff](st-visualbell-20160727-308bfbf.diff) * [st-visualbell-20180101-1f24bde.diff](st-visualbell-20180101-1f24bde.diff) * [st-visualbell-0.8.1.diff](st-visualbell-0.8.1.diff) +* [st-visualbell-0.8.3.diff](st-visualbell-0.8.3.diff) Authors ------- * Matthias Schoth - <mschoth@gmail.com> * Laslo Hunhold - <dev@frign.de> (git port) * Alexis Ben Miloud--Josselin; panpo; alexisbmj+code at protonmail dot com. + +*Note*: [visual bell 2](../visualbell2) was moved to its own page. + diff --git a/st.suckless.org/patches/visualbell/st-visualbell-0.8.3.diff b/st.suckless.org/patches/visualbell/st-visualbell-0.8.3.diff @@ -0,0 +1,53 @@ +From be009f16642dc460182fce800ba5868e70cc3956 Mon Sep 17 00:00:00 2001 +From: Matthias Schoth <mschoth@gmail.com> +Date: Tue, 12 May 2020 18:27:29 +0200 +Subject: [PATCH] visualbell + +--- + x.c | 16 +++++++++++++++- + 1 file changed, 15 insertions(+), 1 deletion(-) + +diff --git a/x.c b/x.c +index e5f1737..4986374 100644 +--- a/x.c ++++ b/x.c +@@ -253,6 +253,7 @@ static char *opt_name = NULL; + static char *opt_title = NULL; + + static int oldbutton = 3; /* button event on startup: 3 = release */ ++static int bellon = 0; /* visual bell status */ + + void + clipcopy(const Arg *dummy) +@@ -1713,6 +1714,15 @@ xbell(void) + xseturgency(1); + if (bellvolume) + XkbBell(xw.dpy, xw.win, bellvolume, (Atom)NULL); ++ ++ /* visual bell*/ ++ if (!bellon) { ++ bellon = 1; ++ MODBIT(win.mode, !IS_SET(MODE_REVERSE), MODE_REVERSE); ++ redraw(); ++ XFlush(xw.dpy); ++ MODBIT(win.mode, !IS_SET(MODE_REVERSE), MODE_REVERSE); ++ } + } + + void +@@ -1943,7 +1953,11 @@ run(void) + (handler[ev.type])(&ev); + } + +- draw(); ++ if (bellon) { ++ bellon = 0; ++ redraw(); ++ } ++ else draw(); + XFlush(xw.dpy); + + if (xev && !FD_ISSET(xfd, &rfd)) +-- +2.26.2 +