[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
parent
859553b129
commit
6a4070155f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue