1
0
Fork 0
mutter-performance-source/src
Carlos Garnacho 54e4d1df79 x11: Defer ClutterStage focus actor change until window is focused
If we happen to be changing focus to a window *while* taking focus
away from Clutter widgetry, we would unintendedly trigger reentrance
in a way that the old focused window remained in focus, by asking
to focus the default focus window in an untimely manner.

To handle this reentrancy, delay dropping the Clutter key focus
until the window focus changed, so that the focus change will look
up the default focused window in the workspace, and find the up to
date one.

Fixes: ae102ee301 ("x11: Refactor ClutterStage key focus management")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3467>
2024-01-10 20:56:24 +01:00
..
backends x11: Drop error trap helpers 2024-01-10 13:58:18 +00:00
common backend/native: Move DrmFormatBuf to cogl-drm-formats 2024-01-03 14:46:41 +01:00
compositor x11: Drop error trap helpers 2024-01-10 13:58:18 +00:00
core x11: Drop error trap helpers 2024-01-10 13:58:18 +00:00
frames frames: Notify borders on first content resize 2024-01-03 19:31:51 +00:00
meta x11: Drop error trap helpers 2024-01-10 13:58:18 +00:00
tests boxes: Move Rectangle.is_adjacent_to to Mtk 2024-01-09 18:47:34 +00:00
wayland x11: Drop error trap helpers 2024-01-10 13:58:18 +00:00
x11 x11: Defer ClutterStage focus actor change until window is focused 2024-01-10 20:56:24 +01:00
meson.build x11: Drop error trap helpers 2024-01-10 13:58:18 +00:00
meta-private-enum-types.c.in build: Add missing include 2022-08-10 20:28:40 +02:00
meta-private-enum-types.h.in cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00