Giter Club home page Giter Club logo

Comments (9)

blueyed avatar blueyed commented on May 18, 2024

This should be covered by the sloppy focus handler.

Which version of awesome are you using?

It seems like when minimizing a client, the mouse::enter signal gets sent with the to-be-minimized client, which changed in 3aeac38 (awesome master, added in January).

/cc @psychon

from awesome.

bitwombat avatar bitwombat commented on May 18, 2024

Version 3.4.15 (Ubuntu 14.04 LTS)
Sounds like this has been remedied since 3.4.15? Excellent!

from awesome.

blueyed avatar blueyed commented on May 18, 2024

Oh, that's an old version - caused by awesome not being updated in Debian for a while.

Unfortunately I don't believe that it's been fixed in the meantime, or it has been (improved), but then regressed again.

I believed that you were using the latest release or Git and were affected by 3aeac38 maybe.

from awesome.

blueyed avatar blueyed commented on May 18, 2024

Just checked this again.

With awesome master, there's (still) no mouse::enter event when minimizing a client.
Then it falls back to the autofocus module/handler, which sends the request::activate signal for the last focused window.

I've tried using awful.mouse.client_under_pointer() with the following in a custom request::activate handler, but it seems like this returns the old (to-be-minimized) client:

if context ==  "autofocus.check_focus" then
    c = awful.mouse.client_under_pointer() or c
end

from awesome.

psychon avatar psychon commented on May 18, 2024

Not having a mouse::enter on minimize is by design, although I can't really say why. If you want to get around it, open banning.c and remove the call to client_ignore_enterleave_events(). Then all bannings (hiding a client e.g. due to tag switch or unminimize) and unbannings (showing a client for the same reasons) will cause mouse events. I bet that this is not appropriate to have in general, but I don't really know why.

from awesome.

blueyed avatar blueyed commented on May 18, 2024

I see. Thanks for explaining it!

582c4a7 seems to explain it, but is not too confident about it either.

from awesome.

psychon avatar psychon commented on May 18, 2024

As I understand this, the issue was fixed. Closing, but feel free to reopen if I am wrong.

from awesome.

EmbeddedLinuxGuy avatar EmbeddedLinuxGuy commented on May 18, 2024

Hi, I'm not aware that this behavior has changed. In fact it is still the behavior in my build of Awesome:

awesome v3.5.9 (Mighty Ravendark)
• Build: Mar 12 2016 01:11:40 for x86_64 by gcc version 5.3.0 (builduser@rw)
• Compiled against Lua 5.3.2 (running with Lua 5.3)
• D-Bus support: ✔

I believe this is still an outstanding bug in focus handling; should I re-open or start a new Issue? I'm happy to provide additional information as needed. The bug makes my typical workflow of "minimize several windows consecutively" not work very well since I can't follow the focus.

from awesome.

Elv13 avatar Elv13 commented on May 18, 2024

@EmbeddedLinuxGuy Hello. Please try again with the current git version of Awesome before filling a new issue. Non trivial bug fixes and behavior breaking changes are not backported into the 3.5 branch anymore and will go into 3.6 (when it's ready)

from awesome.

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.