closest equivalent to KApplicationPrivate::init() ?

David Faure faure at kde.org
Sat Jan 2 11:50:59 UTC 2016


On Saturday 02 January 2016 10:49:59 René J.V. Bertin wrote:
> Morning!
> 
> Is there anything like a closest equivalent to KApplicationPrivate::init() in KF5 Frameworks?

Yes, QApplicationPrivate::init() :-)

> I added a "bring application to the foreground" call (to a KWindowSystem helper function) in there, which alleviated the issue of applications remaining somewhere in the background on OS X. 
> I'm still keeping an eye out for central locations where I could call that helper function.

This would break focus-stealing-prevention.
Apps started while the user is typing elsewhere shouldn't be brought to the foreground.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list