mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1186] [MERGED] Feature(wm)/stop ignore restore #1243
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/1186
Author: @alex-ds13
Created: 12/17/2024
Status: ✅ Merged
Merged: 12/18/2024
Merged by: @LGUG2Z
Base:
master← Head:feat(wm)/stop-ignore-restore📝 Commits (1)
19581d0feat(wm): allow stopping without restoring windows📊 Changes
5 files changed (+59 additions, -38 deletions)
View changed files
📝
komorebi/src/core/mod.rs(+1 -0)📝
komorebi/src/main.rs(+1 -1)📝
komorebi/src/process_command.rs(+5 -34)📝
komorebi/src/window_manager.rs(+44 -2)📝
komorebic/src/main.rs(+8 -1)📄 Description
This PR creates a new
SocketMessagecalledStopIgnoreRestorewhich makes komorebi stop without callingwindow.restore()on all windows. This way every maximized window will stay maximized once you start komorebi again and it is able to use the previousState.If it fails to restore the previous state you might have to call
komorebic restore-windowsin case you had hidden windows, for example when when using thewindow_hiding_behaviourasHide, or you can simply unminimize them if you were usingCloakorMinimize.This PR is built on top #1185 so it needs to be merged after that one.
@LGUG2Z I've made this just a draft PR so you can give me your feedback and tell me if you think it's fine to add or if you rather not add it to not increase complexity just to appease the needs of one person (that one person being me 😄). I don't think users can use this to shoot themselves on the foot because even if they are using
window_hiding_behaviourasHidethey can always callkomorebic restore-windowsafterwards if for some reason komorebi fails to load their previousState.Also this command is mostly intended for developers that are making changes to komorebi code and need to be restarting it a lot of times.
However I totally understand if you think it's better not to add it. In that case I might keep rebasing this commit on top of master just for me... 😄
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.