diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-01-26 08:28:54 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-01-26 08:28:54 +0000 |
| commit | 846271e8d3056ef3ecd3d2f4b7df6151e17c3c70 (patch) | |
| tree | 4d53d5136d1a90daf9397ed6b7d48876d07080f7 /selection.h | |
| parent | grid: reflow: regression: remove (truncate) SPACER cells at the end of line (diff) | |
render: resize: configure with only one dimension being zero
The protocol states:
If the width or height arguments are zero, it means the client
should decide its own window dimension. This may happen when the
compositor needs to configure the state of the surface but doesn't
have any information about any previous or expected dimension.
The wording is a bit ambiguous; does it mean we should set *both*
width and height to values we choose, even if only one dimension is
zero in the configure event? Or does it mean that we should choose the
value for the dimension that is zero in the configure event?
Regardless, it's pretty clear that it does *not* mean we should *only*
choose width and height if *both* dimensions are zero in the configure
event. This is foot's behavior before this patch, meaning if only one
of them is zero, foot assumed the compositor wanted us to set the
width (or height) to zero...
Change this, so that we now choose value for the "missing" dimension,
but do use the compositor provided value for the other dimension.
Closes #1925
Relevant issues:
* https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/155
* https://github.com/YaLTeR/niri/issues/1050
Diffstat (limited to 'selection.h')
0 files changed, 0 insertions, 0 deletions
