Why does Java (XWayland / Weston) resize a Window to 1x1 pixel when HDMI is unplugged (and does not resize back when HDMI is plugged)
michel at daenzer.net
Fri Jun 9 07:50:20 UTC 2023
On 6/8/23 19:13, Martin Petzold wrote:
> Am 08.06.23 um 14:45 schrieb Martin Petzold:
>> Am 08.06.23 um 14:37 schrieb Pekka Paalanen:
>>> FWIW, when you unplug the last display, leaving none, then there is no
>>> display area. Weston does not pretend a fake display, there just is
>>> none. I don't know how Xwayland reacts to that, and how that Java suite
>>> reacts to what Xwayland does. Those would be something to look into, if
>>> Weston upgrade does not help.
>> Yes, it must be XWayland. Maybe there is any configuration to fix it?
>>> Xwayland might have a fake something when all real displays are gone,
>>> and maybe nothing then re-associates your app window from the fake
>>> monitor to a real monitor once a real monitor appears again? No idea.
>>> Maybe check what xrandr says while you have no displays connected? That
>>> might give a clue, assuming the Java stack listens to RandR.
> Interesting: It changes from XWAYLAND0 to XWAYLAND1 to XWAYLAND2 [...]
FWIW, the RandR output name should be stable as of Xwayland 23.1, assuming Weston reports a stable output name via the xdg_output_v1 protocol.
Earthling Michel Dänzer | https://redhat.com
Libre software enthusiast | Mesa and Xwayland developer
More information about the wayland-devel