Package: kwindowsystem / 5.54.0-1

kwindowinfox11test-Skip-SkipSwitcher-test.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Maximiliano Curia <maxy@gnuservers.com.ar>
Date: Tue, 15 May 2018 20:31:18 +0200
Subject: kwindowinfox11test: Skip SkipSwitcher test

Openbox won't keep unknown states and SkipSwitcher is kde specific
---
 autotests/kwindowinfox11test.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/autotests/kwindowinfox11test.cpp b/autotests/kwindowinfox11test.cpp
index 857d5a9..26e6761 100644
--- a/autotests/kwindowinfox11test.cpp
+++ b/autotests/kwindowinfox11test.cpp
@@ -227,6 +227,11 @@ void KWindowInfoX11Test::testState()
 
     KWindowInfo info3(window->winId(), NET::WMState);
     QVERIFY(info3.valid());
+
+    NETRootInfo rootInfo(QX11Info::connection(), NET::Supported | NET::SupportingWMCheck);
+    if (state == NET::States(NET::SkipSwitcher) && qstrcmp(rootInfo.wmName(), "Openbox") == 0) {
+        QSKIP("Openbox won't keep unknown states, SkipSwitcher is kde specific");
+    }
     QCOMPARE(int(info3.state()), int(state));
     QVERIFY(info3.hasState(state));
 }