diff --git a/composite.cpp b/composite.cpp index 8b9ad0941c..ef4d66a069 100644 --- a/composite.cpp +++ b/composite.cpp @@ -64,7 +64,7 @@ namespace KWin extern int currentRefreshRate(); -CompositorSelectionOwner::CompositorSelectionOwner(const char *selection) : KSelectionOwner(selection), owning(false) +CompositorSelectionOwner::CompositorSelectionOwner(const char *selection) : KSelectionOwner(selection, connection(), rootWindow()), owning(false) { connect (this, SIGNAL(lostOwnership()), SLOT(looseOwnership())); } diff --git a/effects/startupfeedback/startupfeedback.cpp b/effects/startupfeedback/startupfeedback.cpp index f8d4c607cf..3b82fdf96c 100644 --- a/effects/startupfeedback/startupfeedback.cpp +++ b/effects/startupfeedback/startupfeedback.cpp @@ -72,7 +72,7 @@ static const int s_startupDefaultTimeout = 5; StartupFeedbackEffect::StartupFeedbackEffect() : m_bounceSizesRatio(1.0) , m_startupInfo(new KStartupInfo(KStartupInfo::CleanOnCantDetect, this)) - , m_selection(new KSelectionOwner("_KDE_STARTUP_FEEDBACK", -1, this)) + , m_selection(new KSelectionOwner("_KDE_STARTUP_FEEDBACK", xcbConnection(), x11RootWindow(), this)) , m_active(false) , m_frame(0) , m_progress(0) diff --git a/rules.cpp b/rules.cpp index 97abd30f18..07bbab1e83 100644 --- a/rules.cpp +++ b/rules.cpp @@ -943,7 +943,7 @@ RuleBook::RuleBook(QObject *parent) : QObject(parent) , m_updateTimer(new QTimer(this)) , m_updatesDisabled(false) - , m_temporaryRulesMessages(new KXMessages("_KDE_NET_WM_TEMPORARY_RULES", NULL)) + , m_temporaryRulesMessages(new KXMessages(connection(), rootWindow(), "_KDE_NET_WM_TEMPORARY_RULES", nullptr)) { connect(m_temporaryRulesMessages.data(), SIGNAL(gotMessage(QString)), SLOT(temporaryRulesMessage(QString))); connect(m_updateTimer, SIGNAL(timeout()), SLOT(save()));