GithubHelp home page GithubHelp logo

Failed to grab keyboard about slop HOT 12 CLOSED

naelstrof avatar naelstrof commented on May 28, 2024
Failed to grab keyboard

from slop.

Comments (12)

zedeus avatar zedeus commented on May 28, 2024

Hmm, this also happens with scrot -s

giblib error: couldn't grab keyboard:Resource temporarily unavailable

I guess it isn't an issue with slop then.

from slop.

naelstrof avatar naelstrof commented on May 28, 2024

No it is, I need to keep slop from crashing since it's non-fatal. I'll let you know when I fix it.

from slop.

zedeus avatar zedeus commented on May 28, 2024

Oh sweet, thanks. If I insert a sleep 0.2 before calling slop, it works, so I guess sxhkd isn't ungrabbing fast enough. I guess slop could wait for that?

from slop.

naelstrof avatar naelstrof commented on May 28, 2024

Oh whoa, I never knew about that. I could make slop retry grabbing for a second or so, but that'd make slop really unresponsive imo.

You can always cancel a selection, even if it fails to grab the keyboard. It'll just let input fall through if so.

Could you try this new release? It should be fixed: https://github.com/naelstrof/slop/releases/tag/v5.3.29

from slop.

naelstrof avatar naelstrof commented on May 28, 2024

Sorry, this release, not that one: https://github.com/naelstrof/slop/releases/tag/v5.3.30

from slop.

zedeus avatar zedeus commented on May 28, 2024

Works now, starts immediately and I'm able to cancel pretty much instantly.
Thanks for fixing it!

from slop.

9ary avatar 9ary commented on May 28, 2024

Looks like there are still issues on i3, slop doesn't crash but doesn't really work either, it draws the border around the window I'm currently hovering and prevents me from clicking anywhere until I start typing.

from slop.

naelstrof avatar naelstrof commented on May 28, 2024

It seems to work fine for me. What kind of configuration do you have for i3?

from slop.

9ary avatar 9ary commented on May 28, 2024

https://github.com/Streetwalrus/dotfiles/blob/master/i3/config#L106

I can reproduce consistently with just slop as the command.

from slop.

naelstrof avatar naelstrof commented on May 28, 2024

Ok confirmed, copying your configuration I get the same issue. I'll try to figure out what's going on.

from slop.

naelstrof avatar naelstrof commented on May 28, 2024

So slop was just failing to grab the mouse, failing to grab is now fatal, and now slop tries repeatedly for .5 seconds after launching before fatally shutting down.

Tested and fixed in 3634e20

from slop.

9ary avatar 9ary commented on May 28, 2024

Can confirm it's working now. Thanks.

from slop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.