From 9fd572be56692d868941e4b59ff9e9e446e060c4 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 1 Feb 2024 11:49:23 +0000 Subject: [PATCH] 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 Reviewed-by: Liang Qi --- src/plugins/platforms/wayland/qwaylandintegration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/wayland/qwaylandintegration.cpp b/src/plugins/platforms/wayland/qwaylandintegration.cpp index d505f4844ff..d5da84c2434 100644 --- a/src/plugins/platforms/wayland/qwaylandintegration.cpp +++ b/src/plugins/platforms/wayland/qwaylandintegration.cpp @@ -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);