]> Dogcows Code - chaz/openbox/commitdiff
initalize static stuff.
authorDana Jansens <danakj@orodu.net>
Wed, 13 Jun 2007 11:31:02 +0000 (11:31 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 13 Jun 2007 11:31:02 +0000 (11:31 +0000)
make --debug-xinerama more intersting..

openbox/extensions.c
openbox/screen.c

index b7d8e73aa9ea53f148e36e1c81f29890254067c2..605834cd701c2e11d27aa35186693a990f5ec4fa 100644 (file)
@@ -105,7 +105,7 @@ void extensions_xinerama_screens(Rect **xin_areas, guint *nxin)
         *nxin = 2;
         *xin_areas = g_new(Rect, *nxin + 1);
         RECT_SET((*xin_areas)[0], 0, 0, w/2, h);
-        RECT_SET((*xin_areas)[1], w/2, 0, w-(w/2), h);
+        RECT_SET((*xin_areas)[1], w/2, 0, w-(w/2), h/2);
     }
     else {
         *nxin = 1;
index 40b08f332ed2ca4eddabde821dff373d4e0e1f4c..e4f66f1afbde46766406f05333ad24f1f2028f65 100644 (file)
@@ -66,12 +66,12 @@ Window   screen_support_win;
 Time     screen_desktop_user_time = CurrentTime;
 
 /*! An array of desktops, holding array of areas per monitor */
-static Rect  *monitor_area;
+static Rect  *monitor_area = NULL;
 /*! An array of desktops, holding an array of struts */
-static GSList **struts_top;
-static GSList **struts_left;
-static GSList **struts_right;
-static GSList **struts_bottom;
+static GSList **struts_top = NULL;
+static GSList **struts_left = NULL;
+static GSList **struts_right = NULL;
+static GSList **struts_bottom = NULL;
 
 static ObPagerPopup *desktop_cycle_popup;
 
@@ -1100,7 +1100,7 @@ void screen_install_colormap(ObClient *client, gboolean install)
 #define RESET_STRUT_LIST(sl) \
     {if (sl) for (i = 0; sl[i]; ++i) g_slist_free(sl[i]); \
      sl = g_renew(GSList*, sl, screen_num_desktops + 1); \
-     memset(sl, NULL, sizeof(GSList*) * screen_num_desktops);}
+     memset(sl, 0, sizeof(GSList*) * screen_num_desktops + 1);}
 
 #define ADD_STRUT_TO_LIST(sl, d, s) \
     {for (i = 0; i < screen_num_desktops; ++i) \
This page took 0.028689 seconds and 4 git commands to generate.