summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-13 11:31:02 +0000
committerDana Jansens <danakj@orodu.net>2007-06-13 11:31:02 +0000
commitf683e84741ae32ee51cc8f6d984a9f35814a7a3c (patch)
treed5c9fd1b851fa94d981ebdffc3cb7868e6b57d4a
parentb394fe8e1014d901f2ae5855fb449d0ac0b3b2a2 (diff)
initalize static stuff.
make --debug-xinerama more intersting..
-rw-r--r--openbox/extensions.c2
-rw-r--r--openbox/screen.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/openbox/extensions.c b/openbox/extensions.c
index b7d8e73a..605834cd 100644
--- a/openbox/extensions.c
+++ b/openbox/extensions.c
@@ -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;
diff --git a/openbox/screen.c b/openbox/screen.c
index 40b08f33..e4f66f1a 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -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) \