Skip to content

X11: Handle ShowActivated=false#20958

Open
MrJul wants to merge 1 commit intoAvaloniaUI:masterfrom
MrJul:feature/x11-show-activated
Open

X11: Handle ShowActivated=false#20958
MrJul wants to merge 1 commit intoAvaloniaUI:masterfrom
MrJul:feature/x11-show-activated

Conversation

@MrJul
Copy link
Member

@MrJul MrJul commented Mar 20, 2026

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

@MrJul MrJul added feature area-x11 backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch customer-priority Issue reported by a customer with a support agreement. labels Mar 20, 2026
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 12.0.999-cibuild0063799-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-x11 backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch customer-priority Issue reported by a customer with a support agreement. feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ShowActivated doesn't work on Linux

2 participants