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

group_activate_specific and window focus issues #68

Open darcybgoode opened 4 years ago

darcybgoode commented 4 years ago

Hello. Been using windowchef for a while and liked it a lot. Almost perfect WM for me except for couple of issues that I find quite annoying. I'm used to traditional workspace workflow, so I use sticky_windows true and group_activate_specific features.

1. I open two or more apps and focus one of them (NOT the first opened one). Then I try to "switch to workspace 2" by pressing group_activate_specific 2. Expected result would be seeing a clean workpace 2, but instead those apps dissapear and the first app is focused. I have to press group_activate_specific 2 again to finally switch to workspace 2 and all those apps remain on workspace 1.

But if I manually focus the first app and then press group_activate_specific 2 everything works fine.

2. While changing workspaces the focus also lays on first opened apps, not the last ones used. This issue seems to be connected to the upper one.

tudurom commented 4 years ago

Hi there! Sorry for replying this late, I've been quite busy.

Can you try compiling the code from the issue_68 branch? I attempted to fix the first issue.

darcybgoode commented 4 years ago

Hi. Thanks for reply.

I tried compiling from the branch. The issue is still there.

tudurom commented 3 years ago

Can you try again? I pushed a new commit to issue_68.

mintyleaf commented 3 years ago

tested in on issue_68 branch bug still there

zphixon commented 3 years ago

I've compiled a reproduction of the behavior I'm experiencing with the issue_68 branch (merged with master, although I'm sure it doesn't make a difference). I am using group_toggle n and sticky_windows false.

https://gist.github.com/zphixon/026565d2bf81858dd7241e21084f3623

Each reproduction is focused on an ungrouped window first since that's where I was taking these notes. In some other unrecorded testing I've done without an ungrouped window involved, it seems that the previous focused window in the group has some effect on the behavior I've observed.