https://bugs.kde.org/show_bug.cgi?id=465530
--- Comment #12 from Oscar Fuentes <bugs-...@axeitado.com> --- (In reply to Vlad Zahorodnii from comment #11) > I'm unaware of code that could focus a window if its title changes. A shot > in the dark: do you have window rules for emacs? If not, then I guess > somebody would need to build a dev version of emacs and test for themselves Yes, I have these window rules for Emacs: [5] Description=Emacs Android shortcut=Ctrl+Alt+6 shortcutrule=2 strictgeometryrule=2 title=AndroEmacs: titlematch=2 types=1 wmclass=emacs wmclassmatch=1 [6] Description=Emacs shortcut=Ctrl+Alt+1 shortcutrule=2 strictgeometryrule=2 types=1 wmclass=emacs wmclassmatch=1 For the rule [5] I changed wmclass to "foo" (thus effectively disabling the rule) and the problem went away. So Kwin is giving focus to Emacs because of that rule. Please note that it has "title=" and "titlematch=" attributes, but the Emacs window that ends with focus do not match those criteria (in fact, in my experiment there is no window that matches that criteria.) To recap: Emacs changes its window's title when it is iconified and de-icononified, Kwin notices the change of title and the existence of that rule [5] causes to set the input focus on Emacs' window. -- You are receiving this mail because: You are watching all bug changes.