tudurom / windowchef

Window Chef is a stacking window manager that cooks windows with orders from the Waitron
https://tudorr.ro/software/windowchef/
ISC License
203 stars 14 forks source link

click to focus #23

Closed dialuplama closed 7 years ago

dialuplama commented 7 years ago

Maybe it possible to add "click to focus" feature. I suppose that for some people it would be more natural than "sloppy focus". I tried to achieve this behavior with underneath.sh from wmutils contrib repo, but it doesn't work with drop-down menus. Also there is xqp tool from baskerville. Unfortunately it also has issue with drop-down menus in some apps.

tudurom commented 7 years ago

I don't know if I can fix the dropdown issue. Dropdowns are windows on their own and are ignored by windowchef completely.

dialuplama commented 7 years ago

Well, found that when using waitron window_focus $(xqp) the issue with dropdown appear only in electron based applications (chromium, atom, etc.) Maybe it will be helpful.

tudurom commented 7 years ago

I think that you can solve it by replacing waitron window_focus $(xqp) with test "$(pfw)" != "$(xqp)" && waitron window_focus $(xqp).

dialuplama commented 7 years ago

It's works! Thank you.