Integrated: 8326497: Window.toFront() fails for iconified windows on Linux

Maxim Kartashev mkartashev at openjdk.org
Tue Mar 12 08:18:20 UTC 2024


On Fri, 23 Feb 2024 15:58:18 GMT, Maxim Kartashev <mkartashev at openjdk.org> wrote:

> XToolkit implements `toFront()` essentially by sending the  `_NET_ACTIVE_WINDOW` message to activate the window. This has no effect when the target window is in the iconified state. So the fix is to cancel that state prior to sending the message.
> 
> The test verifies that the fix works for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint.
> 
> References
> * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html
> * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4)

This pull request has now been integrated.

Changeset: 139681a7
Author:    Maxim Kartashev <mkartashev at openjdk.org>
Committer: Alexey Ushakov <avu at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/139681a7eb7a0a1207f66e72095766983e7b717b
Stats:     124 lines in 3 files changed: 122 ins; 0 del; 2 mod

8326497: Window.toFront() fails for iconified windows on Linux

Reviewed-by: tr, prr

-------------

PR: https://git.openjdk.org/jdk/pull/17985


More information about the client-libs-dev mailing list