X11: Handle ShowActivated=false by MrJul · Pull Request #20958 · AvaloniaUI/Avalonia (original) (raw)

What does the pull request do?

This PR adds support for Window.ShowActivated=false on X11.

What is the current behavior?

ShowActivated is not respected and always acts as if it's true.

What is the updated/expected behavior with this PR?

ShowActivated=false works.

How was the solution implemented (if it's not obvious)?

_NET_WM_USER_TIME is set to 0 before the window is displayed, as specified.

The special value of zero on a newly mapped window can be used to request that the window not be initially focused when it is mapped.

Tested on Mutter and KWin.

Fixed issues