9226aad58c
There was code that attempted to fill in the gap below the title texture when the texture isn't tall enough, but this only worked when the output was positioned at 0,0. The reason is that render_rect expects a box passed in a hybrid layout-local/output-buffer-local system, and we were passing purely output-buffer-local. I've added a comment documenting this. By the way, we can't use layout-local coordinates for the rectangle box because in some cases we set the box based on a texture size. Texture sizes are buffer-local, and we'd have to divide them to bring it back to layout-local which means losing precision. We could use output-buffer-local coordinates for the box, but this would require translating the coordinates from layout-local to output-buffer-local in many places during rendering. This patch also vertically centers the text inside the title bar. |
||
---|---|---|
.. | ||
desktop.c | ||
idle_inhibit_v1.c | ||
layer_shell.c | ||
output.c | ||
render.c | ||
transaction.c | ||
xdg_shell.c | ||
xdg_shell_v6.c | ||
xwayland.c |