From 5ba9a09ea28a2b85c54d5b27cde0c437b222c53c Mon Sep 17 00:00:00 2001 From: Ottatop Date: Thu, 7 Sep 2023 18:04:00 -0500 Subject: [PATCH] Remove redundant xwayland window raise --- src/handlers/xwayland.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/handlers/xwayland.rs b/src/handlers/xwayland.rs index 1c6706c..607ede5 100644 --- a/src/handlers/xwayland.rs +++ b/src/handlers/xwayland.rs @@ -187,20 +187,6 @@ impl XwmHandler for CalloopData { .client_compositor_state(&client) .blocker_cleared(&mut data.state, &data.display.handle()) } - - // Schedule the popup to raise when all windows have committed after having - // their blockers cleared - crate::state::schedule_on_commit(data, windows_on_output, move |dt| { - let WindowElement::X11(surface) = &clone else { unreachable!() }; - if should_float(surface) { - if let Some(xwm) = dt.state.xwm.as_mut() { - tracing::debug!("raising x11 popup"); - xwm.raise_window(surface).expect("failed to raise x11 win"); - dt.state.space.raise_element(&clone, true); - dt.state.focus_state.set_focus(clone); - } - } - }); }); }); }