mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-13 16:42:50 +02:00
fix(wm): update border correctly on (un)stack
This commit ensures that when active, the border is drawn correctly after the stack and unstack commands. fix #396
This commit is contained in:
@@ -76,6 +76,9 @@ komorebic.exe identify-border-overflow-application exe "DiscordPTB.exe"
|
|||||||
# If you have disabled minimize/close to tray for this application, you can delete/comment out the next line
|
# If you have disabled minimize/close to tray for this application, you can delete/comment out the next line
|
||||||
komorebic.exe identify-tray-application exe "DiscordPTB.exe"
|
komorebic.exe identify-tray-application exe "DiscordPTB.exe"
|
||||||
|
|
||||||
|
# Dropbox
|
||||||
|
komorebic.exe float-rule exe "Dropbox.exe"
|
||||||
|
|
||||||
# ElectronMail
|
# ElectronMail
|
||||||
# If you have disabled minimize/close to tray for this application, you can delete/comment out the next line
|
# If you have disabled minimize/close to tray for this application, you can delete/comment out the next line
|
||||||
komorebic.exe identify-tray-application exe "ElectronMail.exe"
|
komorebic.exe identify-tray-application exe "ElectronMail.exe"
|
||||||
@@ -84,6 +87,9 @@ komorebic.exe identify-tray-application exe "ElectronMail.exe"
|
|||||||
# If you have disabled minimize/close to tray for this application, you can delete/comment out the next line
|
# If you have disabled minimize/close to tray for this application, you can delete/comment out the next line
|
||||||
komorebic.exe identify-tray-application exe "Element.exe"
|
komorebic.exe identify-tray-application exe "Element.exe"
|
||||||
|
|
||||||
|
# Elephicon
|
||||||
|
komorebic.exe float-rule exe "Elephicon.exe"
|
||||||
|
|
||||||
# ElevenClock
|
# ElevenClock
|
||||||
# If you have disabled minimize/close to tray for this application, you can delete/comment out the next line
|
# If you have disabled minimize/close to tray for this application, you can delete/comment out the next line
|
||||||
komorebic.exe identify-tray-application exe "ElevenClock.exe"
|
komorebic.exe identify-tray-application exe "ElevenClock.exe"
|
||||||
@@ -421,6 +427,12 @@ komorebic.exe identify-tray-application exe "VoiceAI.exe"
|
|||||||
# If you have disabled minimize/close to tray for this application, you can delete/comment out the next line
|
# If you have disabled minimize/close to tray for this application, you can delete/comment out the next line
|
||||||
komorebic.exe identify-tray-application exe "WebTorrent.exe"
|
komorebic.exe identify-tray-application exe "WebTorrent.exe"
|
||||||
|
|
||||||
|
# WinZip (32-bit)
|
||||||
|
komorebic.exe float-rule exe "winzip32.exe"
|
||||||
|
|
||||||
|
# WinZip (64-bit)
|
||||||
|
komorebic.exe float-rule exe "winzip64.exe"
|
||||||
|
|
||||||
# Windows Console (conhost.exe)
|
# Windows Console (conhost.exe)
|
||||||
komorebic.exe manage-rule class "ConsoleWindowClass"
|
komorebic.exe manage-rule class "ConsoleWindowClass"
|
||||||
|
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ pub fn load_configuration() -> Result<()> {
|
|||||||
let mut config_pwsh = home.clone();
|
let mut config_pwsh = home.clone();
|
||||||
config_pwsh.push("komorebi.ps1");
|
config_pwsh.push("komorebi.ps1");
|
||||||
|
|
||||||
let mut config_ahk = home.clone();
|
let mut config_ahk = home;
|
||||||
config_ahk.push("komorebi.ahk");
|
config_ahk.push("komorebi.ahk");
|
||||||
|
|
||||||
if config_pwsh.exists() {
|
if config_pwsh.exists() {
|
||||||
@@ -277,6 +277,7 @@ pub fn load_configuration() -> Result<()> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[must_use]
|
||||||
pub fn current_virtual_desktop() -> Option<Vec<u8>> {
|
pub fn current_virtual_desktop() -> Option<Vec<u8>> {
|
||||||
let hkcu = RegKey::predef(HKEY_CURRENT_USER);
|
let hkcu = RegKey::predef(HKEY_CURRENT_USER);
|
||||||
|
|
||||||
|
|||||||
@@ -1074,6 +1074,20 @@ impl WindowManager {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
match message {
|
||||||
|
SocketMessage::StackWindow(_) => {
|
||||||
|
BORDER_COLOUR_CURRENT
|
||||||
|
.store(BORDER_COLOUR_STACK.load(Ordering::SeqCst), Ordering::SeqCst);
|
||||||
|
}
|
||||||
|
SocketMessage::UnstackWindow => {
|
||||||
|
BORDER_COLOUR_CURRENT.store(
|
||||||
|
BORDER_COLOUR_SINGLE.load(Ordering::SeqCst),
|
||||||
|
Ordering::SeqCst,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
_ => {}
|
||||||
|
}
|
||||||
|
|
||||||
match message {
|
match message {
|
||||||
SocketMessage::ChangeLayout(_)
|
SocketMessage::ChangeLayout(_)
|
||||||
| SocketMessage::ChangeLayoutCustom(_)
|
| SocketMessage::ChangeLayoutCustom(_)
|
||||||
@@ -1089,6 +1103,8 @@ impl WindowManager {
|
|||||||
| SocketMessage::ToggleMaximize
|
| SocketMessage::ToggleMaximize
|
||||||
| SocketMessage::Promote
|
| SocketMessage::Promote
|
||||||
| SocketMessage::PromoteFocus
|
| SocketMessage::PromoteFocus
|
||||||
|
| SocketMessage::StackWindow(_)
|
||||||
|
| SocketMessage::UnstackWindow
|
||||||
| SocketMessage::Retile
|
| SocketMessage::Retile
|
||||||
// Adding this one so that changes can be seen instantly after
|
// Adding this one so that changes can be seen instantly after
|
||||||
// modifying the active window border offset
|
// modifying the active window border offset
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ impl WindowManager {
|
|||||||
let mut config_pwsh = home.clone();
|
let mut config_pwsh = home.clone();
|
||||||
config_pwsh.push("komorebi.ps1");
|
config_pwsh.push("komorebi.ps1");
|
||||||
|
|
||||||
let mut config_ahk = home.clone();
|
let mut config_ahk = home;
|
||||||
config_ahk.push("komorebi.ahk");
|
config_ahk.push("komorebi.ahk");
|
||||||
|
|
||||||
if config_pwsh.exists() {
|
if config_pwsh.exists() {
|
||||||
|
|||||||
Reference in New Issue
Block a user