]> code.delx.au - spectrwm/commitdiff
Add a default cursor.
authorMarco Peereboom <marco@conformal.com>
Thu, 1 Jul 2010 19:49:21 +0000 (19:49 +0000)
committerMarco Peereboom <marco@conformal.com>
Thu, 1 Jul 2010 19:49:21 +0000 (19:49 +0000)
scrotwm.c

index 2d9283c2abc91ecdafeee868fe9f18260afffa87..a455bd569efde4f566095be2f28baa77f3ee5e47 100644 (file)
--- 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++) {