Skip to content

(release/25.1) hw/xwin: Always set the X input focus to none when an X window loses focus#2272

Open
metux wants to merge 1 commit intorelease/25.1from
pr/hw-xwin-always-set-the-x-input-focus-to-none-when-an-x-window-loses-focus-_2026-04-18_19-47-56
Open

(release/25.1) hw/xwin: Always set the X input focus to none when an X window loses focus#2272
metux wants to merge 1 commit intorelease/25.1from
pr/hw-xwin-always-set-the-x-input-focus-to-none-when-an-x-window-loses-focus-_2026-04-18_19-47-56

Conversation

@metux
Copy link
Copy Markdown
Contributor

@metux metux commented Apr 18, 2026

In the multiwindow WM, we need to cancel the X input focus if the
Windows input focus has gone to the desktop, or another application's
window.

We could maybe avoid some unneeded work by not doing this if the
WM_KILLFOCUS wParam is another window owned by us, which is immediately
going to be given the X input focus.

Part-of: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/736

@metux metux self-assigned this Apr 18, 2026
@metux metux requested a review from a team April 18, 2026 17:47
metux pushed a commit that referenced this pull request Apr 18, 2026
@metux metux force-pushed the pr/hw-xwin-always-set-the-x-input-focus-to-none-when-an-x-window-loses-focus-_2026-04-18_19-47-56 branch from 9756983 to 639ee1e Compare April 19, 2026 11:54
…focus

In the multiwindow WM, we need to cancel the X input focus if the
Windows input focus has gone to the desktop, or another application's
window.

We could maybe avoid some unneeded work by not doing this if the
WM_KILLFOCUS wParam is another window owned by us, which is immediately
going to be given the X input focus.

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/736>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
metux pushed a commit that referenced this pull request Apr 21, 2026
metux pushed a commit that referenced this pull request Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants