On Thu, May 21, 2020 at 01:49:36PM +0200, Theo Buehler wrote:
> On Thu, May 21, 2020 at 11:58:37AM +0100, Stuart Henderson wrote:
> > I've written a patch to add bsd-auth support back to slock 1.4 which
> > I've been using for a while. Tidied the make variable handling a bit
> > as well, no need to patch to use ?=, they can just be overridden with
> > MAKE_FLAGS. OK?
> 
> I would prefer if this used the libc version of explicit_bzero instead
> of the local copy. For this, set COMPATSRC to empty in compat.mk (why do
> you add a COPTSFLAG=-Os via a patch?).
> 
> While the updated slock seems to work fine from the command line, it
> doesn't lock at all if I use it from a i3 binding.  I have been using
> 
>       bindsym $mod+Mod1+l exec "slock"

It happens with some X11 apps that request the mouse pointer right away, 
but it is grabbed so it fails, 

You can fix it changing your bindkey to something like:
"bindsym --release $mod+Mod1+l exec "sleep 0.5 ; slock"

Actually, i3 has a feature for dealing with it though, --release:
try better: bindsym --release $mod+Mod1+l exec "slock"

Reply via email to