diff --git a/main.cpp b/main.cpp index 256bdce244..7be352fd4f 100644 --- a/main.cpp +++ b/main.cpp @@ -280,7 +280,7 @@ KDE_EXPORT int kdemain( int argc, char * argv[] ) else appname.sprintf("kwin-screen-%d", KWinInternal::screen_number); - QDBus::sessionBus().busService()->requestName( appname, QDBusBusService::DoNotQueueName ); + QDBus::sessionBus().interface()->registerService( appname, QDBusConnectionInterface::DontQueueService ); return a.exec(); } diff --git a/utils.cpp b/utils.cpp index 47c8b8f7f7..3cb06ee5e6 100644 --- a/utils.cpp +++ b/utils.cpp @@ -24,6 +24,7 @@ License. See the file "COPYING" for the exact licensing terms. #include #include #include +#include #include #include