Fix xcb backend not grabbing the server as default
The xcb backend relies on grabbing the x server in a few situations like popuphandling. For Qt 5.4.0 the logic enabling this code path was moved into the plugin. However it defaults to never grabbing the server Change-Id: I82489a0727affbce62587b3d7470085cf716a0cc Task-number: QTBUG-43049 Reviewed-by: Martin Gräßlin <mgraesslin@kde.org> Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>bb10
parent
71a63836ed
commit
2e2de5e482
|
|
@ -165,7 +165,7 @@ QXcbIntegration::QXcbIntegration(const QStringList ¶meters, int &argc, char
|
|||
"\t Use the -dograb option to enforce grabbing.");
|
||||
}
|
||||
#endif
|
||||
m_canGrab = (!underDebugger && noGrabArg) || (underDebugger && doGrabArg);
|
||||
m_canGrab = (!underDebugger && !noGrabArg) || (underDebugger && doGrabArg);
|
||||
|
||||
static bool canNotGrabEnv = qEnvironmentVariableIsSet("QT_XCB_NO_GRAB_SERVER");
|
||||
if (canNotGrabEnv)
|
||||
|
|
|
|||
Loading…
Reference in New Issue