add theme to the rspanel struct. initialize some stuff to 0's
authorDana Jansens <danakj@orodu.net>
Sun, 10 Jun 2007 03:26:23 +0000 (03:26 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 10 Jun 2007 03:26:23 +0000 (03:26 +0000)
rspanel.c
rspanel.h

index 8d7e0c0..5710510 100644 (file)
--- a/rspanel.c
+++ b/rspanel.c
@@ -575,6 +575,8 @@ main(int argc, char *argv[])
     sc.width = DisplayWidth(sc.dd, sc.num);
     sc.root = RootWindow(sc.dd, sc.num);
     sc.rr = RrInstanceNew(sc.dd, sc.num);
+    sc.theme = NULL;
+    sc.fore_gc = None;
 
     /* helps us catch windows closing/opening */
     XSelectInput(sc.dd, sc.root, PropertyChangeMask | SubstructureNotifyMask);
index 3afe008..3c01b08 100644 (file)
--- a/rspanel.h
+++ b/rspanel.h
@@ -16,6 +16,7 @@ typedef struct screen
     int         height;
     Window      root;
     RrInstance *rr;
+    RrTheme    *theme;              /* setup by gui_init */
     Atom        atoms[XPROP_COUNT]; /* setup by xprop_init */
     GC          fore_gc;            /* setup by gui_init */
 }