diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2013-07-09 22:25:45 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2013-07-09 22:25:45 +0200 |
commit | 807bef904f2b5b04aa80fb730753c604a07b29ee (patch) | |
tree | 15529aac6cbf93a0646130f44ad7cdd31a8bf62a | |
parent | 867986d6239dabec63dc8290ebdb241142ef6567 (diff) |
add comment to clarify how the fallback works
-rw-r--r-- | cursor/load_cursor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cursor/load_cursor.c b/cursor/load_cursor.c index e35311c..50d1e0f 100644 --- a/cursor/load_cursor.c +++ b/cursor/load_cursor.c @@ -194,6 +194,8 @@ xcb_cursor_t xcb_cursor_load_cursor(xcb_cursor_context_t *c, const char *name) { uint32_t last_height = 0; xcb_cursor_t cid = XCB_NONE; + // NB: if !render_present, fd will be -1 and thus the next if statement + // will trigger the fallback. if (c->render_present) { if (c->rm[RM_XCURSOR_THEME]) fd = open_cursor_file(c, c->rm[RM_XCURSOR_THEME], name, &core_char); |