client: add ScreenWindowGrabbing capability

On Wayland, there is no protocol to do it yet.

Task-number: QTBUG-100792
Task-number: QTBUG-101145
Change-Id: I4bfef2920547babf0ccc00a27062d0db77ae5b7f
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Liang Qi 2022-03-08 15:41:38 +01:00
parent e228149142
commit b3395051bf

View File

@ -162,6 +162,8 @@ bool QWaylandIntegration::hasCapability(QPlatformIntegration::Capability cap) co
return true;
case WindowActivation:
return false;
case ScreenWindowGrabbing: // whether QScreen::grabWindow() is supported
return false;
default: return QPlatformIntegration::hasCapability(cap);
}
}