Bug 247968

Summary: Input Actions, trigger on window gets focus doesn't work
Product: [Plasma] khotkeys Reporter: wonderz
Component: generalAssignee: Michael Jansen <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description wonderz 2010-08-15 17:48:49 UTC
Version:           4.5 (using KDE 4.5.0) 
OS:                Linux

nput Actions, trigger on window gets focus doesn't work for me.

In both kde 4.4 and kde 4.5

Reproducible: Always

Steps to Reproduce:
To test make a new window action for doplhin, select trigger "gets focus" and a simple command, like "kate" to start Kate.


Actual Results:  
While trigger "appears" works as expected (Kate launches when the window appears for the first time), trigger "gets focus" doesn't work.

Expected Results:  
trigger "gets focus" works (each time I focus the window (including first time opening), the action is executed).
Comment 1 wonderz 2011-01-27 17:39:52 UTC
Still does not work in KDE 4.6 
Remove that option at all then. Do not confuse users if you don't plan to fix it.
Comment 2 David Edmundson 2015-08-20 11:38:03 UTC
Git commit 6dead1c0f2320eed4b388fb6a75d9999985c05a1 by David Edmundson.
Committed on 20/08/2015 at 11:37.
Pushed by davidedmundson into branch 'Plasma/5.4'.

Fix khotkeys triggers on window activation

window actions are set after init is called, which means a connect gets
missed
Related: bug 154402
REVIEW: 124830

M  +2    -0    libkhotkeysprivate/triggers/window_trigger.cpp

http://commits.kde.org/khotkeys/6dead1c0f2320eed4b388fb6a75d9999985c05a1