Skip to content

Conversation

@dnk
Copy link
Contributor

@dnk dnk commented Mar 9, 2023

pass focus to window if it is on another workspace.

current behavior:

  1. there are 2 windows on workspace A and window 2 is above window 1
  2. switch to workspace B
  3. use "switch-windows-all" keys to switch to window 1

actual result:
window 1 get "demands attention" mark.
focus passed to window 2.

with this changes:
focus passed to window 1. window 1 is raised above all normal windows.

there is still problem with stealing focus by "always on top" windows. it can fixed separately.

pass focus to window if it is on another workspace
@dnk dnk closed this Mar 9, 2023
@dnk dnk reopened this Mar 9, 2023
@dnk
Copy link
Contributor Author

dnk commented Mar 21, 2023

known problem:
scenario:
there are 2+ monitors
workspace 1:

  • application A on monitor 1
  • application B (Atom text editor) on monitor 2
    active workspace 2
    switch to application A using "switch-windows-all" hotkey

actual result:
application B (Atom text editor) on monitor 2 displays invalid image.

the same problem appeared by just switching workspaces.

may be there is bug in Atom text editor.

@lukefromdc lukefromdc requested a review from a team April 3, 2023 03:39
Copy link

@Rambo1377 Rambo1377 left a comment

Choose a reason for hiding this comment

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

src/core/window.c

@lukefromdc
Copy link
Member

This isn't something I can easily test as its so far outside my workflow. I have never used a switch-windows-all hotkey and the entire described workflow is out of my experience.It would not be visually obvious to me if this was working right or not.

We have one approving review and the code change itself is simple. Hoping we can get a second review on this.

Copy link
Member

@vkareh vkareh left a comment

Choose a reason for hiding this comment

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

I can confirm the issue. However, in your comments you mentioned that "always on top" windows will be addressed separately, but this commit seems to only address "always on top" windows.

In either case. The changes here do not fix the issue for me on either regular windows or "always on top" windows.

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.

4 participants