Do not crash on wayland, gracefully exit with error instead

Authored by alexeymin on May 18 2019, 10:47 AM.

Description

Do not crash on wayland, gracefully exit with error instead

Summary:
Sadly, XTestQueryExtension just segfaults under wayland.
Avoid it by detecting QPA used.

BUG: 406599

Test Plan:
Nice error message when running in Wayland session.

Still works in X11

Reviewers: aacid, kossebau, jgrulich, KDE Applications, pino, ngraham

Reviewed By: pino

Subscribers: pino, ngraham

Tags: KDE Applications

Differential Revision: https://phabricator.kde.org/D21267

Details

Committed
alexeyminMay 18 2019, 3:07 PM
Reviewer
pino
Differential Revision
D21267: Do not crash on wayland, gracefully exit with error instead
Parents
R437:6ecb4248b8a3: Fix warning when compiling with Qt >= 5.10
Branches
Unknown
Tags
Unknown