Giter VIP home page Giter VIP logo

Comments (6)

rvaiya avatar rvaiya commented on May 27, 2024

It depends on the shortcuts in question. Traditionally X grabs are used to avoid interference among multiple clients which want to listen for the same set of keys. warpd used to use these grabs before they were replaced by a custom input layer based on xinput in order to allow compatibility with more applications.

While warpd is active it should grab all keys, but before it is active it has no way of preventing applications from processing the activation keys. It is up to the user to ensure there are no conflicts. This is why it is currently possible to bind activation keys which conflict with your window manager bindings.

Having said that, I am currently in the process of doing a partial rewrite (mainly to add macos support) which will likely end up using standard X grabs for the linux implementation.

from warpd.

matheusfillipe avatar matheusfillipe commented on May 27, 2024

Well the shortcut that most bothers me is esc. I dont mean the activation keys. On some programs I try to use warpd to focus on a text box but when I hit esc to exit warpd it also exits the textbox.

from warpd.

matheusfillipe avatar matheusfillipe commented on May 27, 2024

Actually seems this is only happening with the exit shortcut. Is there something specific to it that is making other applications grab it?

from warpd.

matheusfillipe avatar matheusfillipe commented on May 27, 2024

I just bisected and the problem was introduced by: 806f6a0

It is the leaking exit key problem.

from warpd.

matheusfillipe avatar matheusfillipe commented on May 27, 2024

Changing that 0 to 1 fixes it for me. Maybe it has other consequences?

diff --git a/src/main.c b/src/main.c
index 348a72b..94809c5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -440,7 +440,7 @@ void main_loop()
                }


-               input_ungrab_keyboard(0);
+               input_ungrab_keyboard(1);
                set_cursor_visibility(1);
        }
 }

from warpd.

rvaiya avatar rvaiya commented on May 27, 2024

Sorry, you're right. This is indeed a regression. I have fixed it in the latest commit. Note that I will be releasing a fairly major overhaul of the current code base in the next few days that will also include some design changes.

from warpd.

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.