Skip to content

Conversation

cecton
Copy link
Contributor

@cecton cecton commented Oct 2, 2021

So who wants more Windows update 😁

I checked the code and I think this code was triggered almost every time after a command from CommandPipe except for the commands called from display_event_handler.rs (key combos).

In this PR I'm not restoring that exact behavior. I am updating the windows systematically after any command no matter the origin (from pipe or from key binding) as suggested by @AethanFoot #472 (comment)

My reasoning is that it is better to have consistency across command handling. The commands triggered by display_event_handler.rs are for when a key combo occurs while the ones triggered in the event loop are for when a command is received via the command pipe. It seems more predictable and consistent that they both behave the same: update the windows right after any command no matter which origin.

@AethanFoot AethanFoot mentioned this pull request Oct 2, 2021
@hertg
Copy link
Member

hertg commented Oct 3, 2021

I'm looking forward to this hotfix. 👍
But the current bug is also conditioning me to finally start using my keyboard, instead of the mouse, to switch tags 😂
Some bugs have hidden features.

@cecton
Copy link
Contributor Author

cecton commented Oct 3, 2021

I accidentally helped someone today 😂

@lex148 lex148 merged commit fade2bf into leftwm:master Oct 4, 2021
@cecton cecton deleted the fix-missing-windows-update-after-command branch October 4, 2021 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants