Skip to content

How to focus a window? #2528

Closed Answered by soreau
vdegenne asked this question in Q&A
Dec 2, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

When I type google-chrome ... in a terminal in a viewport, wayfire will focus Google Chrome automatically if it is in another viewport when the tab opens. How to focus any given window that way? Do I need to send a special signal?

Typically the app will self-focus the 'parent' window if it is run multiple times and is programmed this way.

If possible an easy solution without the use of IPC would be ideal.

If you want your application to behave this way, you must program it as such. If you just want to focus a window arbitrarily, you can either use wf-panel window-list (or the equivalent in another panel like waybar), to click on the window in the panel and it will become focused. Othe…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vdegenne
Comment options

@soreau
Comment options

Answer selected by vdegenne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants