swayfx/sway/desktop
Ryan Dwyer 9226aad58c Fix gaps in title textures and vertically center them
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.
2018-09-08 16:25:07 +10:00
..
desktop.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
idle_inhibit_v1.c Fix memory leak in sway/desktop/idle_inhibit_v1.c 2018-07-17 11:35:24 -04:00
layer_shell.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
output.c Merge pull request #2603 from emersion/fix-dnd 2018-09-07 11:09:02 -04:00
render.c Fix gaps in title textures and vertically center them 2018-09-08 16:25:07 +10:00
transaction.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
xdg_shell.c Float views when min == max on either dimension 2018-09-06 23:57:57 +10:00
xdg_shell_v6.c Float views when min == max on either dimension 2018-09-06 23:57:57 +10:00
xwayland.c Float views when min == max on either dimension 2018-09-06 23:57:57 +10:00