diff --git a/util.c b/util.c index 574009e97..3e55e2f6e 100644 --- a/util.c +++ b/util.c @@ -27,6 +27,7 @@ #include #include +#include #include "util.h" @@ -67,7 +68,7 @@ uicb_spawn(Display * disp, if(!arg) return; - if((tmp = getenv("DISPLAY"))) + if(XineramaIsActive(disp) && (tmp = getenv("DISPLAY"))) { display = a_strdup(tmp); if((tmp = strrchr(display, '.')))