don't modify display if we're on Xinerama

This commit is contained in:
Julien Danjou 2007-09-27 17:52:28 +02:00
parent ecf79693a2
commit 3bba90fa38
1 changed files with 2 additions and 1 deletions

3
util.c
View File

@ -27,6 +27,7 @@
#include <X11/Xutil.h> #include <X11/Xutil.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <X11/extensions/Xinerama.h>
#include "util.h" #include "util.h"
@ -67,7 +68,7 @@ uicb_spawn(Display * disp,
if(!arg) if(!arg)
return; return;
if((tmp = getenv("DISPLAY"))) if(XineramaIsActive(disp) && (tmp = getenv("DISPLAY")))
{ {
display = a_strdup(tmp); display = a_strdup(tmp);
if((tmp = strrchr(display, '.'))) if((tmp = strrchr(display, '.')))