]> git.sur5r.net Git - i3/i3/commit
Fix predict_text_width by using xcb_query_text_extents
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 10 Mar 2010 22:27:24 +0000 (23:27 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 11 Mar 2010 23:50:31 +0000 (00:50 +0100)
commit061f8f137563503a5903307593bc4fbe9fee905c
tree2afcd2599da4356e3236f88f789895f7df063cae
parent56b08ab4fc0489315bd06f2ea6d68ae7d6370b5f
Fix predict_text_width by using xcb_query_text_extents

This fixes ticket #173, at least for the rendering errors.
I don’t really know why I implemented predict_text_width like it
was before (querying the whole table and pulling out information
one by one). Maybe I have overlooked xcb_query_text_extents. In
any case, it works better now.
src/xcb.c