diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-08-15 08:58:48 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-08-15 09:01:56 +0200 |
commit | 26d1e64b22f728c512923c2c5b2fb0235addefd7 (patch) | |
tree | 2788fc308e6e0119f1fc8acd124e77269ff4f583 /source/x11-helper.c | |
parent | acdd8ddb5ae7c264d8dd29085368453e6f82cbce (diff) |
Make textbox use character position instead of byte index for cursor.
Diffstat (limited to 'source/x11-helper.c')
-rw-r--r-- | source/x11-helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/x11-helper.c b/source/x11-helper.c index 689cd753..2bb46cdd 100644 --- a/source/x11-helper.c +++ b/source/x11-helper.c @@ -617,7 +617,7 @@ void x11_create_visual_and_colormap ( void ) xcb_visualtype_iterator_t visual_iter; for ( visual_iter = xcb_depth_visuals_iterator ( d ); visual_iter.rem; xcb_visualtype_next ( &visual_iter ) ) { xcb_visualtype_t *v = visual_iter.data; - if ( (v->bits_per_rgb_value == 8) && ( d->depth == 32 ) && ( v->_class == XCB_VISUAL_CLASS_TRUE_COLOR ) ) { + if ( ( v->bits_per_rgb_value == 8 ) && ( d->depth == 32 ) && ( v->_class == XCB_VISUAL_CLASS_TRUE_COLOR ) ) { depth = d; visual = v; } |