From 6626d4d98c192130681543d59ff5e0e7bac9ab4a Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Thu, 5 May 2022 14:11:23 +0200 Subject: [PATCH] protocol: wl_subsurface will never be focused The spec does not describe which actions cause the compositor to assign keyboard focus to a surface, leaving this up to the compositor. Compositors differ in their behavior when the user clicks on a sub-surface. Some will move the keyboard focus to the subsurface whereas others will only ever assign the keyboard focus to toplevel surfaces. Some applications (e.g. firefox) seem to require the second behavior. This patch specifies that sub-surfaces never get the keyboard focus. Signed-off-by: Julian Orth --- protocol/wayland.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 37a7603..5c2a803 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -3078,6 +3078,8 @@ If the parent wl_surface object is destroyed, the sub-surface is unmapped. + + A sub-surface never has the keyboard focus of any seat.