diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-27 17:08:49 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-27 17:08:49 +0000 |
| commit | 1d3498989bb159a56fd9839b686777a9fd3618ba (patch) | |
| tree | 7cb00fb0279cb49cb261a1ab49ca182d28527661 /shm.h | |
| parent | changelog: add new 'unreleased' section (diff) | |
| parent | changelog: move scrollback indicator entries from 1.4.3 to 'unreleased' (diff) | |
Merge branch 'scrollback-position-indicator'
Closes #42
Diffstat (limited to 'shm.h')
| -rw-r--r-- | shm.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -49,4 +49,5 @@ void shm_purge(struct wl_shm *shm, unsigned long cookie); struct terminal; static inline unsigned long shm_cookie_grid(const struct terminal *term) { return (unsigned long)((uintptr_t)term + 0); } static inline unsigned long shm_cookie_search(const struct terminal *term) { return (unsigned long)((uintptr_t)term + 1); } -static inline unsigned long shm_cookie_csd(const struct terminal *term, int n) { return (unsigned long)((uintptr_t)term + 2 + (n)); } +static inline unsigned long shm_cookie_scrollback_indicator(const struct terminal *term) { return (unsigned long)(uintptr_t)term + 2; } +static inline unsigned long shm_cookie_csd(const struct terminal *term, int n) { return (unsigned long)((uintptr_t)term + 3 + (n)); } |
