mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-14 09:02:45 +02:00
fix(wm): revert regression in ffm raise handler
This commit is contained in:
@@ -184,7 +184,8 @@ impl WindowManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
match event {
|
match event {
|
||||||
WindowManagerEvent::Raise(_window) => {
|
WindowManagerEvent::Raise(window) => {
|
||||||
|
window.focus(false)?;
|
||||||
self.has_pending_raise_op = false;
|
self.has_pending_raise_op = false;
|
||||||
}
|
}
|
||||||
WindowManagerEvent::Destroy(_, window) | WindowManagerEvent::Unmanage(window) => {
|
WindowManagerEvent::Destroy(_, window) | WindowManagerEvent::Unmanage(window) => {
|
||||||
|
|||||||
@@ -774,14 +774,11 @@ impl WindowManager {
|
|||||||
pub fn raise_window_at_cursor_pos(&mut self) -> Result<()> {
|
pub fn raise_window_at_cursor_pos(&mut self) -> Result<()> {
|
||||||
let mut hwnd = None;
|
let mut hwnd = None;
|
||||||
|
|
||||||
for monitor in self.monitors() {
|
let workspace = self.focused_workspace()?;
|
||||||
for workspace in monitor.workspaces() {
|
if let Some(container_idx) = workspace.container_idx_from_current_point() {
|
||||||
if let Some(container_idx) = workspace.container_idx_from_current_point() {
|
if let Some(container) = workspace.containers().get(container_idx) {
|
||||||
if let Some(container) = workspace.containers().get(container_idx) {
|
if let Some(window) = container.focused_window() {
|
||||||
if let Some(window) = container.focused_window() {
|
hwnd = Some(window.hwnd);
|
||||||
hwnd = Some(window.hwnd);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user