set still required xcb properties in findRule

which is invoked "in place" of the detect button
when calling the kcm as special window/application
setting from the Alt+F3 menu

BUG: 348472
REVIEW: 123953
icc-effect-5.14.5
Thomas Lübking 2015-05-30 23:55:18 +02:00
parent 1df2d5979f
commit 6a27626090
1 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,12 @@ static void saveRules(const QList< Rules* >& rules)
static Rules* findRule(const QList< Rules* >& rules, Window wid, bool whole_app)
{
// ClientMachine::resolve calls NETWinInfo::update() which requires properties
// bug #348472 ./. bug #346748
if (QX11Info::isPlatformX11()) {
qApp->setProperty("x11Connection", QVariant::fromValue<void*>(QX11Info::connection()));
qApp->setProperty("x11RootWindow", QVariant::fromValue(QX11Info::appRootWindow()));
}
KWindowInfo info = KWindowInfo(wid,
NET::WMName | NET::WMWindowType,
NET::WM2WindowClass | NET::WM2WindowRole | NET::WM2ClientMachine);