RFR: 8305578: X11GraphicsDevice.pGetBounds() is slow in remote X11 sessions [v3]

Sergey Bylokhov serb at openjdk.org
Fri Apr 14 20:00:35 UTC 2023


On Fri, 14 Apr 2023 19:43:29 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> I did what you suggested to `X11GraphicsDevice.bounds`; please, take a look.
>> 
>> As for insets, it is more complicated because they may change without `displayChanged()` being called; this happens when, for example, the size of the dock bar changes. We are notified of the `_NET_WORKAREA` property change for the root window that is not accompanied by the ConfigureNotify event. I'm reluctant to send `displayChanged()` in this case; it seems like an overkill for a change in the work area.
>
> II suggest to check how it works on win/mac, does we trigger displayChanged in that case?

Even if we skip displayChanged, it is better to inject the field to the GC, and update it on demand, in as similar way the displayChanged is implemented.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13346#discussion_r1167229692



More information about the client-libs-dev mailing list