Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 12cb1c10 authored by Martin Flöser's avatar Martin Flöser

Port Compositor::deleteUnusedSupportProperties away from global x11 connection

Was already using the connection exposed by KWin::Application for parts
of the code. This makes the whole code use the KWin::Application code.
parent c87230c3
......@@ -464,10 +464,10 @@ void Compositor::deleteUnusedSupportProperties()
m_unusedSupportPropertyTimer.start();
return;
}
if (kwinApp()->x11Connection()) {
if (const auto c = kwinApp()->x11Connection()) {
foreach (const xcb_atom_t &atom, m_unusedSupportProperties) {
// remove property from root window
xcb_delete_property(connection(), rootWindow(), atom);
xcb_delete_property(c, kwinApp()->x11RootWindow(), atom);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment