client: Announce platform support for WindowActivation

QtWayland has had support for window activation for some time using the
xdg-activation-v1 protocol. Activating applications requires some
application intervention, but passing focus between windows should work
as automatically as any other platform.

The flag was still left unset as compositor support was lacking, but
this it is now universally supported.

Task-number: QTBUG-121732
Change-Id: I1f31bbf9c5c7cc371e058d2637a1ba2b2b411053
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
David Edmundson 2024-02-01 11:49:23 +00:00 committed by Liang Qi
parent 4781e2a088
commit 9fd572be56

View File

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