swayfx/sway
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
..
commands Introduce seat_set_focus_container and seat_set_focus_workspace 2018-09-06 19:26:56 +10:00
config Call wlr_output_enable on enable/disable if needed 2018-09-05 14:00:00 -04:00
desktop Fix gaps in title textures and vertically center them 2018-09-08 16:25:07 +10:00
input Merge pull request #2603 from emersion/fix-dnd 2018-09-07 11:09:02 -04:00
tree Second attempt at restoring focus when closing a fullscreen view 2018-09-06 22:34:09 +10:00
base64.c Rework get_clipboard implementation 2017-07-07 21:51:34 +02:00
commands.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
config.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
criteria.c Fix inversed condition in criteria 2018-09-05 18:01:43 +10:00
debug-tree.c Don't use wlr_output properties 2018-09-05 18:01:43 +10:00
decoration.c Handle views created after decoration mode is sent for xdg-shell 2018-08-06 15:20:30 +01:00
ipc-json.c Fix swaybars with no defined output 2018-09-05 18:01:43 +10:00
ipc-server.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
main.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
meson.build Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
security.c Add minimal config subsystem 2017-12-05 10:40:55 +01:00
server.c Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
sway-bar.5.scd Add sway-bar(5) 2018-05-11 21:13:43 -04:00
sway-input.5.scd Escaping underscores in tap_button_map 2018-07-29 14:47:53 +02:00
sway.1.scd delete references to swaygrab 2018-07-30 16:24:46 +01:00
sway.5.scd commands: implement move absolute 2018-08-20 10:17:32 +01:00
swaynag.c Fix compiler errors. 2018-08-05 00:24:44 -07:00