aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/202_nx-x11_enable-xinerama.full.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/202_nx-x11_enable-xinerama.full.patch')
-rw-r--r--debian/patches/202_nx-x11_enable-xinerama.full.patch15
1 files changed, 4 insertions, 11 deletions
diff --git a/debian/patches/202_nx-x11_enable-xinerama.full.patch b/debian/patches/202_nx-x11_enable-xinerama.full.patch
index 089df2571..f097f0ba7 100644
--- a/debian/patches/202_nx-x11_enable-xinerama.full.patch
+++ b/debian/patches/202_nx-x11_enable-xinerama.full.patch
@@ -31,24 +31,17 @@ Last-Update: 2012-01-13
#define BuildDmxDevelTools NO
--- a/nx-X11/lib/Xinerama/Xinerama.c
+++ b/nx-X11/lib/Xinerama/Xinerama.c
-@@ -249,6 +249,16 @@
+@@ -249,6 +249,9 @@
xXineramaIsActiveReq *req;
XExtDisplayInfo *info = find_display (dpy);
+
-+ FILE* fptr;
-+ if((fptr=fopen(getenv("NX_XINERAMA_CONF"),"r"))!=NULL) {
-+ fclose(fptr);
-+ return True;
-+ }
-+ else {
-+ return False;
-+ }
++ return True;
+
if(!XextHasExtension(info))
return False; /* server doesn't even have the extension */
-@@ -279,39 +289,72 @@
+@@ -279,39 +282,72 @@
xXineramaQueryScreensReq *req;
XineramaScreenInfo *scrnInfo = NULL;
@@ -193,7 +186,7 @@ Last-Update: 2012-01-13
else
#endif
- result = (ProcXvStopVideo(client)); break;
-+ result = (ProcXvStopVideo(client));
++ result = (ProcXvStopVideo(client));
+ break;
case xv_SetPortAttribute:
#ifdef PANORAMIX