Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.4.0 RC
-
None
Description
Since a7111c5ddef3072eb73c08f14823343208c18f3c the xcb plugin supports the -dograb and -nograb arguments. Unfortunately the implementation causes the QXcbConnection to be created with no grab support if neither of the arguments is provided.
Possible patch:
diff --git a/src/plugins/platforms/xcb/qxcbintegration.cpp b/src/plugins/platforms/xcb/qxcbintegration.cpp index 3818494..6369cbe 100644 --- a/src/plugins/platforms/xcb/qxcbintegration.cpp +++ b/src/plugins/platforms/xcb/qxcbintegration.cpp @@ -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) || (!underDebugger && !noGrabArg && !doGrabArg); static bool canNotGrabEnv = qEnvironmentVariableIsSet("QT_XCB_NO_GRAB_SERVER"); if (canNotGrabEnv)