summaryrefslogtreecommitdiff
path: root/src/termhooks.h
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2013-09-11 17:35:28 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2013-09-11 17:35:28 +0400
commit927eec55795f20df2e4817e4678939a108325012 (patch)
treebf729258c804a3b224cf7549d84bc500444a96b0 /src/termhooks.h
parentfeeff482d80b9f37d083497b2d3a9fec8bc58757 (diff)
Cleaning up a few X scroll bar bits.
* termhooks.h (enum scroll_bar_part): Add scroll_bar_nowhere member. * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS && USE_LUCID]: New member last_seen_part, going to replace... * xterm.c [USE_TOOLKIT_SCROLL_BARS]: ...global last_scroll_bar_part. (xt_action_hook) [USE_LUCID]: Adjust user. (xm_scroll_callback, xg_scroll_callback): Do not bloat with Lucid-specific scroll bar support. (xaw_jump_callback, xaw_scroll_callback): Prefer enum scroll_par_part to int and adjust to use last_seen_part member. (x_set_toolkit_scroll_bar_thumb) [USE_LUCID]: Adjust user. (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS && USE_LUCID]: Initialize last_seen_part.
Diffstat (limited to 'src/termhooks.h')
-rw-r--r--src/termhooks.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/termhooks.h b/src/termhooks.h
index 77f98938ed..30ac795731 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -31,6 +31,7 @@ INLINE_HEADER_BEGIN
#endif
enum scroll_bar_part {
+ scroll_bar_nowhere = -1,
scroll_bar_above_handle,
scroll_bar_handle,
scroll_bar_below_handle,