summaryrefslogtreecommitdiff
path: root/openbox/openbox.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-01-31 12:36:06 -0500
committerDana Jansens <danakj@orodu.net>2008-01-31 12:51:38 -0500
commit20b8fcfa33feeade5946bc7f3046705da5d164fe (patch)
tree5199d13a9f18aa90ce51244c3c3eb6685d7673ab /openbox/openbox.c
parentdc94a241c30484611688a8bfb5515577f017529e (diff)
parentd11ac82062d729be5d63c9c40c5c2bb312a8b8f1 (diff)
Merge branch 'backport' into work
Conflicts: openbox/client.c openbox/config.c openbox/event.c openbox/extensions.c openbox/focus_cycle_indicator.c openbox/focus_cycle_popup.c openbox/menuframe.c openbox/moveresize.c openbox/openbox.c openbox/screen.c openbox/stacking.c openbox/startupnotify.c
Diffstat (limited to 'openbox/openbox.c')
-rw-r--r--openbox/openbox.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c
index 6a58cca6..9ec47bc0 100644
--- a/openbox/openbox.c
+++ b/openbox/openbox.c
@@ -33,6 +33,7 @@
#include "focus_cycle_popup.h"
#include "moveresize.h"
#include "frame.h"
+#include "framerender.h"
#include "keyboard.h"
#include "mouse.h"
#include "menuframe.h"
@@ -177,7 +178,7 @@ gint main(gint argc, gchar **argv)
/* set the DISPLAY environment variable for any lauched children, to the
display we're using, so they open in the right place. */
- putenv(g_strdup_printf("DISPLAY=%s", DisplayString(obt_display)));
+ setenv("DISPLAY", DisplayString(obt_display), TRUE);
/* create available cursors */
cursors[OB_CURSOR_NONE] = None;
@@ -490,9 +491,7 @@ static void remove_args(gint *argc, gchar **argv, gint index, gint num)
static void parse_env()
{
/* unset this so we don't pass it on unknowingly */
- gchar *s = g_strdup("DESKTOP_STARTUP_ID");
- putenv(s);
- g_free(s);
+ unsetenv("DESKTOP_STARTUP_ID");
}
static void parse_args(gint *argc, gchar **argv)