Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't try to refocus on an app of the same client. #3714

Conversation

tarek-y-ismail
Copy link
Contributor

Fixes #3309

Note that this bug only occurs with apps that can have multiple windows running under the same process (example: gnome-terminal, pluma)

@tarek-y-ismail tarek-y-ismail self-assigned this Jan 9, 2025
@tarek-y-ismail tarek-y-ismail requested a review from a team as a code owner January 9, 2025 10:53
Copy link
Collaborator

@Saviq Saviq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WFM!

Comment on lines -291 to -292
if (can_activate_window_for_session_in_workspace(application, workspaces_containing_window))
return;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlanGriffiths this was here since you introduced MirAL… 8 years ago…

Can you comment on whether you're OK with this change?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like only yesterday!

With what I now know about window management, it just looks wrong.

Copy link
Collaborator

@AlanGriffiths AlanGriffiths left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other uses for this function are suspect too: the idea of a "focussed session" was probably a mistake. But changing that is likely to unravel too much at this time

Comment on lines -291 to -292
if (can_activate_window_for_session_in_workspace(application, workspaces_containing_window))
return;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like only yesterday!

With what I now know about window management, it just looks wrong.

@Saviq Saviq disabled auto-merge January 9, 2025 13:47
@Saviq Saviq added this pull request to the merge queue Jan 9, 2025
Merged via the queue into main with commit 870c1c3 Jan 9, 2025
35 of 39 checks passed
@Saviq Saviq deleted the MIRENG-452/closing-a-window-brings-one-of-the-remaining-windows-of-the-same-client-to-the-front branch January 9, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Closing a window brings one of the remaining windows of the same client to the front
3 participants