mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
knotify: hack for KAudioPlayer
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
5e162c27fe
commit
2edfae16e2
1 changed files with 9 additions and 0 deletions
|
@ -33,6 +33,15 @@
|
|||
|
||||
#include "knotify.h"
|
||||
|
||||
// NOTE: this has to be done before application instance is created and KAudioPlayer requires
|
||||
// it, i.e. it is too late to do it from the kmediaplayer library itself if it is dlopen-ed
|
||||
#if defined(Q_WS_X11)
|
||||
static int knotify_x11_init_threads() {
|
||||
QApplication::setAttribute(Qt::AA_X11InitThreads, true);
|
||||
return 1;
|
||||
};
|
||||
Q_CONSTRUCTOR_FUNCTION(knotify_x11_init_threads)
|
||||
#endif
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue