leftwm: Window focus doesn’t change in some situations
When the pointer is above an area that is never_Focus
the focus is not updated correctly.
In case of switching tags it stays on the focused window of the previous focused tag.
(In case of #197 it creates the new window in the background)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (24 by maintainers)
I see this as well. I am testing a fix right now. should have a PR up later today.
Thanks @lex148. I feel quite sorry for putting this buggy PR on the main project obviously way too early. On the other hand, I am very grateful for all the input and feedback, since I am learning a ton from it.
I keep trying to implement a more reliablae and hopefully elegant solution in this branch of my fork.
when I look at the upstream/master branch I find the line
let act = DisplayAction::MoveMouseOver(handle);
in line 280 and 324. Or did I get your below quoted comment somehow wrong?@AethanFoot: I think your EDIT2 is a good lead. My preferred behaviour still would be that the monocle layout should strictly react on a change of focus: when I “move” a window I want to see a different window, when I move focus I want to see a different window, when I create a new window I most probably want to see this new window now etc.
Maybe if the visibility in the monocle layout follows
DisplayEvent::FocusedWindow(WindowHandle, i32, i32)
, so it gets changed after the focus_handler calledDisplayAction::MoveMouseOver(WindowHandle)
absolutely love the pace this project is moving right now 😃
This turned out not to be one problem but several little focus oddities. I have found about four today while testing. I have merged the fixes for them. If we continue to see focus bugs let me know and we will keep killing them.