[clientmachine] Use NETWinInfo instead of KWindowInfo

No need to go through the abstraction. We have all needed info after all.
icc-effect-5.14.5
Martin Gräßlin 2015-02-17 13:59:04 +01:00
parent 859553b129
commit 6a4070155f
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "client_machine.h"
#include "utils.h"
// KF5
#include <KWindowInfo>
#include <NETWM>
// Qt
#include <QtConcurrentRun>
#include <QFutureWatcher>
@ -176,9 +176,9 @@ void ClientMachine::resolve(xcb_window_t window, xcb_window_t clientLeader)
if (m_resolved) {
return;
}
QByteArray name = KWindowInfo(window, NET::Properties(), NET::WM2ClientMachine).clientMachine();
QByteArray name = NETWinInfo(connection(), window, rootWindow(), NET::Properties(), NET::WM2ClientMachine).clientMachine();
if (name.isEmpty() && clientLeader && clientLeader != window) {
name = KWindowInfo(clientLeader, NET::Properties(), NET::WM2ClientMachine).clientMachine();
name = NETWinInfo(connection(), clientLeader, rootWindow(), NET::Properties(), NET::WM2ClientMachine).clientMachine();
}
if (name.isEmpty()) {
name = localhost();