shod

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 6f057822011ba29b03ebbb14f68b808557f103f4
parent d99a17673c56c241418773948563e618c5225a18
Author: seninha <lucas@seninha.org>
Date:   Fri, 31 Dec 2021 19:25:16 -0300

add hand mouse cursor for left title-bar button

Diffstat:
Mshod.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/shod.c b/shod.c @@ -71,6 +71,7 @@ enum { CURSOR_E, CURSOR_V, CURSOR_H, + CURSOR_HAND, CURSOR_PIRATE, CURSOR_LAST }; @@ -762,6 +763,7 @@ initcursors(void) theme.cursors[CURSOR_E] = XCreateFontCursor(dpy, XC_right_side); theme.cursors[CURSOR_V] = XCreateFontCursor(dpy, XC_sb_v_double_arrow); theme.cursors[CURSOR_H] = XCreateFontCursor(dpy, XC_sb_h_double_arrow); + theme.cursors[CURSOR_HAND] = XCreateFontCursor(dpy, XC_hand2); theme.cursors[CURSOR_PIRATE] = XCreateFontCursor(dpy, XC_pirate); } @@ -3440,6 +3442,7 @@ rownew(void) row->pixbar = None; XMapWindow(dpy, row->bl); XMapWindow(dpy, row->br); + XDefineCursor(dpy, row->bl, theme.cursors[CURSOR_HAND]); XDefineCursor(dpy, row->br, theme.cursors[CURSOR_PIRATE]); return row; }