Focus New Window

UUID: focus-new-window@mdpenguin
Last edited:
3 months ago 2024-08-19, 00:30
Last commit: [90e19825] Add Portuguese translations (#709)

A Cinnamon extension that ensures new windows will receive focus

README

Close

Focus New Window

GNOME's handling of window focus to prevent focus-stealing has caused a lot of programs to open windows in the background rather than having them open in the foreground, focused and ready to be used (bug report). Unfortunately, this issue made its way into Cinnamon and affects a lot of commonly used programs, such as the file picker from VSCode. This extension overrides the way that Cinnamon handles windows that are requesting attention so that they will be raised to the foreground and focused.

Options

  • Raise window only of listed programs
    • When selected, only windows from the programs that you list will be affected by the extension
    • When unselected, windows from all programs will be affected by the extension
  • Programs to include
    • A comma separated list of programs to include
    • The list is not case sensitive and spaces between programs is optional

Troubleshooting

  • Issue: a listed program is not being focused
    • Double check that you have the right name
    • You can run xprop WM_CLASS in a terminal to see what name is being used by the window that you are trying to include

Log In To Comment!

2 Comments

Kim W.
Kim W.-1 month ago
EXCELLENT!!! At first, it did not work for a program called qpdfview but when I included it into the Listed Programs BANG! Thank you!!!
Ao1Pointblank
Ao1Pointblank-5 months ago
This extension is simple but awesome. It solves the problem of flatpak apps with "portals" for file selection appearing in the background (flatpak discord for example)