From 2be17655fa591b83cbb1562a9166bc9d6b8acf05 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 30 Jul 2014 08:38:21 +0900 Subject: [PATCH] fix vsync display env var handling to be right --- src/lib/ecore_x/ecore_x_vsync_tool.c | 2 +- src/lib/ecore_x/xlib/ecore_x_vsync.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_x/ecore_x_vsync_tool.c b/src/lib/ecore_x/ecore_x_vsync_tool.c index 34c93403ef..b8586260d3 100644 --- a/src/lib/ecore_x/ecore_x_vsync_tool.c +++ b/src/lib/ecore_x/ecore_x_vsync_tool.c @@ -222,7 +222,7 @@ _svr_init(void) char buf[4096], *disp, *s; disp = getenv("DISPLAY"); - if (disp) disp = ":0"; + if (!disp) disp = ":0"; snprintf(buf, sizeof(buf), "ecore-x-vsync-%s", disp); for (s = buf; *s; s++) { diff --git a/src/lib/ecore_x/xlib/ecore_x_vsync.c b/src/lib/ecore_x/xlib/ecore_x_vsync.c index 7aed4bee9f..24de7de5ac 100644 --- a/src/lib/ecore_x/xlib/ecore_x_vsync.c +++ b/src/lib/ecore_x/xlib/ecore_x_vsync.c @@ -410,7 +410,7 @@ _glvsync_animator_tick_source_set(void) ecore_con_init(); } disp = getenv("DISPLAY"); - if (disp) disp = ":0"; + if (!disp) disp = ":0"; snprintf(buf, sizeof(buf), "ecore-x-vsync-%s", disp); for (s = buf; *s; s++) {