Code Monkey home page Code Monkey logo

Comments (8)

SeraphimRP avatar SeraphimRP commented on August 19, 2024

#3 seems similar to this issue.

from opt.

z3bra avatar z3bra commented on August 19, 2024

If you ask wew(1) to grab the pointer, it will.
Grabing the pointer means that the "click" event will be captured by the application, and unfortunately, only one application can register the XCB_EVENT_BUTTON_PRESS per window. To be able to catch it everywhere, wew has to register it on the root window, which has higher precedence over all other windows.

So yeah, it is an expected behavior. What are you trying to achieve? Maybe there is another way to sort this out.

from opt.

Ferdi265 avatar Ferdi265 commented on August 19, 2024

One use-case for this would probably be to focus the window when you click on it (for the people out there that use wmutils to script together their own wm).

from opt.

z3bra avatar z3bra commented on August 19, 2024

I've never been fond of "click-to-focus" behaviors, which is why I didn't even notice it was impossible to have with wew. I'll check if it is possible to implement, and how to do it then.

from opt.

greduan avatar greduan commented on August 19, 2024

@z3bratabs but you said my focus_switch script was cool! ;-; j/k

from opt.

Ferdi265 avatar Ferdi265 commented on August 19, 2024

I guess it's possible if you combine wew enter/leave events (with fixed inter-window enter/leaves, see #3) with sxhkd and some tmp file that holds the window the mouse is currently in. I'll test this once I get home.

Especially since that would probably count as a "hotkey" and would more likely fit better into the scope if sxhkd than wew, and use wew just to get the neccessary info.

from opt.

z3bra avatar z3bra commented on August 19, 2024

It doesn't grab the cursor all the time, only when you explicitely ask for it.

À dim. août 9 01:49:26 2015 GMT+0200, Eduardo Lavaque a écrit :

@z3bratabs but you said my focus_switch script was cool! ;-;


Reply to this email directly or view it on GitHub:
#4 (comment)

Envoyé depuis mon Jolla

from opt.

nikolapintaric avatar nikolapintaric commented on August 19, 2024

Was trying to make click to focus because sometimes tooltips disappearing would change the foccused window, didn't know it was supposed to grab the mouse.

from opt.

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.