Skip to content

Commit

Permalink
Don't try to refocus on an app of the same client. (#3714)
Browse files Browse the repository at this point in the history
Fixes #3309

Note that this bug only occurs with apps that can have multiple windows
running under the same process (example: gnome-terminal, pluma)
  • Loading branch information
Saviq authored Jan 9, 2025
2 parents d2dfa07 + 9673a17 commit 870c1c3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/miral/basic_window_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,6 @@ void miral::BasicWindowManager::refocus(
if (hint && select_active_window(hint))
return;

if (can_activate_window_for_session_in_workspace(application, workspaces_containing_window))
return;

// Try to activate to recently active window of any application in a shared workspace
{
miral::Window new_focus;
Expand Down Expand Up @@ -2993,4 +2990,4 @@ void miral::BasicWindowManager::move_cursor_to(mir::geometry::PointF point)
sink->handle_input(std::move(event));
});
});
}
}

0 comments on commit 870c1c3

Please sign in to comment.