summaryrefslogtreecommitdiff
path: root/openbox/openbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/openbox.c')
-rw-r--r--openbox/openbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c
index ec283d5c..79b30c0d 100644
--- a/openbox/openbox.c
+++ b/openbox/openbox.c
@@ -142,9 +142,9 @@ gint main(gint argc, gchar **argv)
session_startup(argc, argv);
}
- ob_display = obt_display_open(NULL);
- if (ob_display == NULL)
+ if (!obt_display_open(NULL))
ob_exit_with_error(_("Failed to open the display from the DISPLAY environment variable."));
+ ob_display = obt_display;
if (remote_control) {
prop_startup();