aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-28 18:01:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-28 18:01:56 +0000
commit295083059ca8f642437abf44329698d1bbbb0067 (patch)
treee6ebc7f9d0330589a19c420f7ba138438eb8e74c /shm.h
parentchangelog: improved font size consistency across monitors with different DPI (diff)
parentconfig: fix check for scrollback-indicator-format=percentage (diff)
Merge branch 'master' into diagonal-dpi
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/shm.h b/shm.h
index 4c8e9506..0bfb3839 100644
--- a/shm.h
+++ b/shm.h
@@ -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)); }