Skip to content

Commit

Permalink
fix: window effects not applied on manage (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger authored Jan 28, 2025
1 parent b5f1b5c commit d574060
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/wm/src/commands/window/manage_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ pub fn manage_window(
// already focused.
state.pending_sync.queue_focus_change();

// Normally, a `PlatformEvent::WindowFocused` event is what triggers
// focus effects and workspace reordering to be applied. However, when
// a window is first launched, this event can come before the
// window is managed, and so we need to force an update here.
state.pending_sync.queue_focused_effect_update();
state.pending_sync.queue_workspace_to_reorder(
window.workspace().context("No workspace.")?,
);

// Sibling containers need to be redrawn if the window is tiling.
state.pending_sync.queue_container_to_redraw(
if window.state() == WindowState::Tiling {
Expand Down

0 comments on commit d574060

Please sign in to comment.