mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-23 17:18:40 +02:00
fix(wm): restore focus to monocle on ws switch
This commit is contained in:
@@ -198,6 +198,10 @@ impl WindowManager {
|
|||||||
if mouse_follows_focus {
|
if mouse_follows_focus {
|
||||||
if let Some(window) = self.focused_workspace()?.maximized_window() {
|
if let Some(window) = self.focused_workspace()?.maximized_window() {
|
||||||
window.focus()?;
|
window.focus()?;
|
||||||
|
} else if let Some(container) = self.focused_workspace()?.monocle_container() {
|
||||||
|
if let Some(window) = container.focused_window() {
|
||||||
|
window.focus()?;
|
||||||
|
}
|
||||||
} else if let Ok(window) = self.focused_window_mut() {
|
} else if let Ok(window) = self.focused_window_mut() {
|
||||||
window.focus()?;
|
window.focus()?;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user