aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-06-29 19:51:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-06-29 19:51:53 +0000
commit2ea32398c3e1b8c19d0b18ad0cde6c46d71658c5 (patch)
tree4406d9154f04e7c3b97d7a88c9ecc64a06343fae
parentreadme: nope, how about a png then? (diff)
term: use 'left_ptr' instead of 'hand2' as cursor when client is mouse grabbing
-rw-r--r--CHANGELOG.md2
-rw-r--r--terminal.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f8691a3f..e3ff8016 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -36,6 +36,8 @@
debug logging has been enabled.
* OSC 4 (_Set Color_) now updates already rendered cells, excluding
scrollback.
+* Mouse cursor from `hand2` to `left_ptr` when client is capturing the
+ mouse.
### Deprecated
diff --git a/terminal.c b/terminal.c
index 504dec57..b7a49375 100644
--- a/terminal.c
+++ b/terminal.c
@@ -36,7 +36,7 @@
static const char *const XCURSOR_LEFT_PTR = "left_ptr";
static const char *const XCURSOR_TEXT = "text";
-static const char *const XCURSOR_HAND2 = "hand2";
+//static const char *const XCURSOR_HAND2 = "hand2";
bool
term_to_slave(struct terminal *term, const void *_data, size_t len)
@@ -2204,9 +2204,9 @@ void
term_xcursor_update(struct terminal *term)
{
term->xcursor =
- term->is_searching ? XCURSOR_LEFT_PTR :
+ term->is_searching ? XCURSOR_LEFT_PTR : /* TODO: something different? */
selection_enabled(term) ? XCURSOR_TEXT :
- XCURSOR_HAND2;
+ XCURSOR_LEFT_PTR;
render_xcursor_set(term);
}