From 6459ba2f911c73e263cd6d7c3b40c2ff6ad05d48 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Thu, 1 Jul 2010 19:49:21 +0000 Subject: [PATCH] Add a default cursor. --- scrotwm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scrotwm.c b/scrotwm.c index 2d9283c..a455bd5 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -1531,7 +1531,6 @@ void priorws(struct swm_region *r, union arg *args) { union arg a; - struct swm_screen *s = r->s; DNPRINTF(SWM_D_WS, "priorws id %d " "in screen[%d]:%dx%d+%d+%d ws %d\n", args->id, @@ -4549,6 +4548,10 @@ setup_screens(void) setscreencolor("black", i + 1, SWM_S_COLOR_BAR); setscreencolor("rgb:a0/a0/a0", i + 1, SWM_S_COLOR_BAR_FONT); + /* set default cursor */ + XDefineCursor(display, screens[i].root, + XCreateFontCursor(display, XC_left_ptr)); + /* init all workspaces */ /* XXX these should be dynamically allocated too */ for (j = 0; j < SWM_WS_MAX; j++) { -- 1.7.10.4