mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1175] [MERGED] Fix: prevent bar from changing mff
#1237
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1175
Author: @alex-ds13
Created: 12/14/2024
Status: ✅ Merged
Merged: 12/14/2024
Merged by: @LGUG2Z
Base:
master← Head:fix/bar-changing-mff📝 Commits (2)
3fee739feat(client): createsend_batchhelper41af031fix(bar): prevent the bar from changing mff value📊 Changes
2 files changed (+62 additions, -64 deletions)
View changed files
📝
komorebi-bar/src/komorebi.rs(+48 -64)📝
komorebi-client/src/lib.rs(+14 -0)📄 Description
This PR adds a helper function
send_batchto komorebi-client that allows sending multiple messages in a batch. 3rd party users of this library could already do this themselves but it is nice to have this helper to simplify it.Then, on komorebi-bar it makes use of the new
send_batchfunction to batch all the messages in one go when pressing the button to move between workspaces or when moving between stacked windows.Since we are creating this messages in one go we won't be mistakenly changing the value of
mfffor the user.It also only batches the
mffmessages when themffvalue it's true, if it is already false there is no need to be sending those extra messages.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.