Commit 9b2f9cc3 authored by Thomas Lübking's avatar Thomas Lübking
Browse files

don't use input windows on Qt < 4.8.3

According to aacid, it's been broken in every Qt version before

BUG: 312784
REVIEW: 108249
parent e7c77563
......@@ -353,8 +353,22 @@ void Client::destroyClient()
deleteClient(this, Allowed);
}
// DnD handling for input shaping is broken in the clients for all Qt versions before 4.8.3
// NOTICE do not query the Qt version macro, this is a runtime problem!
// TODO KDE5 remove this
static inline bool qtBefore483()
{
QStringList l = QString(qVersion()).split(".");
// "4.x.y"
return l.at(1).toUInt() < 5 && l.at(1).toUInt() < 9 && l.at(2).toUInt() < 3;
}
void Client::updateInputWindow()
{
static bool brokenQtInputHandling = qtBefore483();
if (brokenQtInputHandling)
return;
QRegion region;
if (!noBorder()) {
......
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