static library for X11

2009-07-03 Thread rahul ravindran
Hello,
Is there any way to compile the X library statically.
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Re: is it possible to publish Xming on Citrix?

2009-07-03 Thread Daniel Stone
On Wed, Jul 01, 2009 at 11:08:59PM +0530, Venkateswara_Chalamalasetti wrote:
 Recently i have started using Xming free software to connect to one Solaris 
 machine. It works. But i have a question in my mind. Is it possible to 
 install Xming on WTS and publish Xming on Citrix web page? So that multiple 
 users can start using it from one single installation.

Hi,
We don't really have any control over the Citrix website; you might ask
them.

Cheers,
Daniel


signature.asc
Description: Digital signature
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

XSetIOErrorHandler

2009-07-03 Thread Albert Sanchez
At the beggining of my program I check wether there is connection with the
display with the XOpenDisplay function. This works fine. The problem is when
later I lose the connection (desconnecting the network cable) and my
function specified with XSetIOErrorHandler is not called. Do you know what
could be the problem? Is there any alternative to check the disconnection of
the display?

Thanks!
Albert
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Re: [PATCH] Xext: return BadValue for XTestFakeInput on unsupported capabilities.

2009-07-03 Thread Julien Cristau
On Fri, Jul  3, 2009 at 13:41:05 +1000, Peter Hutterer wrote:

  case XI_ProximityIn:
  case XI_ProximityOut:
 +if (!dev-proximity)
 +{
 +client-errorValue = ev-u.u.type;
 +return BadValue;
 +}
 +break;
  break;

No need to add a second break here :)

Cheers,
Julien
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: static library for X11

2009-07-03 Thread Jeremy Huddleston
Well... isn't there an '--enable-static' option for configure?

On Jul 3, 2009, at 01:56, rahul ravindran wrote:

 Hello,
 Is there any way to compile the X library statically.
 ___
 xorg mailing list
 xorg@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/xorg

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


[PATCH] dri2: support glXWaitGL glXWaitX by copying fake front to front and vice-versa.

2009-07-03 Thread Hamilton, Howard S
This is a port to the server-1.6-branch from master branch 20090216, by Alan 
Hourihane.  This change is needed to enable glxpixmap with DRI2

Signed-off-by: Howard S. Hamilton howard.s.hamil...@intel.com
---
 glx/glxcmds.c |   40 +---
 glx/glxdrawable.h |2 ++
 glx/glxdri.c  |3 +++
 glx/glxdri2.c |   35 +++
 4 files changed, 69 insertions(+), 11 deletions(-)

diff --git a/glx/glxcmds.c b/glx/glxcmds.c
index 71f1544..4dbdadd 100644
--- a/glx/glxcmds.c
+++ b/glx/glxcmds.c
@@ -748,29 +748,47 @@ int __glXDisp_QueryVersion(__GLXclientState *cl, GLbyte 
*pc)
 int __glXDisp_WaitGL(__GLXclientState *cl, GLbyte *pc)
 {
 xGLXWaitGLReq *req = (xGLXWaitGLReq *)pc;
+GLXContextTag tag = req-contextTag;
+ __GLXcontext *glxc = NULL;
 int error;
-
-if (!__glXForceCurrent(cl, req-contextTag, error)) {
-   return error;
+
+if (tag) {
+glxc = __glXLookupContextByTag(cl, tag);
+if (!glxc)
+return __glXError(GLXBadContextTag);
+
+if (!__glXForceCurrent(cl, req-contextTag, error))
+return error;
+
+CALL_Finish( GET_DISPATCH(), () );
 }
 CALL_Finish( GET_DISPATCH(), () );
+
+if (glxc  glxc-drawPriv-waitGL)
+(*glxc-drawPriv-waitGL)(glxc-drawPriv);
+
 return Success;
 }

 int __glXDisp_WaitX(__GLXclientState *cl, GLbyte *pc)
 {
 xGLXWaitXReq *req = (xGLXWaitXReq *)pc;
+GLXContextTag tag = req-contextTag;
+__GLXcontext *glxc = NULL;
 int error;

-if (!__glXForceCurrent(cl, req-contextTag, error)) {
-   return error;
+if (tag) {
+glxc = __glXLookupContextByTag(cl, tag);
+if (!glxc)
+return __glXError(GLXBadContextTag);
+
+if (!__glXForceCurrent(cl, req-contextTag, error))
+return error;
 }
-/*
-** In a multithreaded server that had separate X and GL threads, we would
-** have to wait for the X thread to finish before returning.  As it stands,
-** this sample implementation only supports singlethreaded servers, and
-** nothing needs to be done here.
-*/
+
+if (glxc  glxc-drawPriv-waitGL)
+(*glxc-drawPriv-waitGL)(glxc-drawPriv);
+
 return Success;
 }

diff --git a/glx/glxdrawable.h b/glx/glxdrawable.h
index 4f61f8b..5a7094a 100644
--- a/glx/glxdrawable.h
+++ b/glx/glxdrawable.h
@@ -49,6 +49,8 @@ struct __GLXdrawable {
 GLboolean (*swapBuffers)(__GLXdrawable *);
 void  (*copySubBuffer)(__GLXdrawable *drawable,
   int x, int y, int w, int h);
+void (*waitX)(__GLXdrawable *);
+void (*waitGL)(__GLXdrawable *);

 DrawablePtr pDraw;
 XID drawId;
diff --git a/glx/glxdri.c b/glx/glxdri.c
index 8d614d0..3c53afe 100644
--- a/glx/glxdri.c
+++ b/glx/glxdri.c
@@ -707,6 +707,9 @@ __glXDRIscreenCreateDrawable(__GLXscreen *screen,
 private-base.swapBuffers   = __glXDRIdrawableSwapBuffers;
 private-base.copySubBuffer = __glXDRIdrawableCopySubBuffer;

+private-base.waitX = NULL;
+private-base.waitGL = NULL;
+
 __glXenterServer(GL_FALSE);
 retval = DRICreateDrawable(screen-pScreen, serverClient,
   pDraw, hwDrawable);
diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index 836fea4..aa3862c 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -143,6 +143,39 @@ __glXDRIdrawableSwapBuffers(__GLXdrawable *drawable)
 return TRUE;
 }

+static void
+__glXDRIdrawableWaitX(__GLXdrawable *drawable)
+{
+   __GLXDRIdrawable *private = (__GLXDRIdrawable *) drawable;
+   BoxRec box;
+   RegionRec region;
+
+   box.x1 = 0;
+   box.y1 = 0;
+   box.x2 = private-width;
+   box.y2 = private-height;
+   REGION_INIT(drawable-pDraw-pScreen, region, box, 0);
+
+   DRI2CopyRegion(drawable-pDraw, region,
+ DRI2BufferFakeFrontLeft, DRI2BufferFrontLeft);
+}
+
+static void
+__glXDRIdrawableWaitGL(__GLXdrawable *drawable)
+{
+__GLXDRIdrawable *private = (__GLXDRIdrawable *) drawable;
+BoxRec box;
+RegionRec region;
+
+box.x1 = 0;
+box.y1 = 0;
+box.x2 = private-width;
+box.y2 = private-height;
+REGION_INIT(drawable-pDraw-pScreen, region, box, 0);
+
+DRI2CopyRegion(drawable-pDraw, region,
+  DRI2BufferFrontLeft, DRI2BufferFakeFrontLeft);
+}

 static int
 __glXDRIdrawableSwapInterval(__GLXdrawable *drawable, int interval)
@@ -351,6 +384,8 @@ __glXDRIscreenCreateDrawable(__GLXscreen *screen,
 private-base.destroy   = __glXDRIdrawableDestroy;
 private-base.swapBuffers   = __glXDRIdrawableSwapBuffers;
 private-base.copySubBuffer = __glXDRIdrawableCopySubBuffer;
+private-base.waitGL = __glXDRIdrawableWaitGL;
+private-base.waitX = __glXDRIdrawableWaitX;

 if (DRI2CreateDrawable(pDraw)) {
xfree(private);
--
1.6.2.5
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


[ANNOUNCE] applewmproto 1.3.0

2009-07-03 Thread Jeremy Huddleston
Jeremy Huddleston (3):
   Pad xAppleWMNotifyEvent up to 32 bytes to properly match  
sizeof(xEvent)
   Added XAppleWMAttachTransient to push that codepath from quartz- 
wm into Xplugin... needed for SL.
   1.3.0

git tag: applewmproto-1.3.0

http://xorg.freedesktop.org/archive/individual/proto/applewmproto-1.3.0.tar.bz2
MD5: f6b7b47a19536b9e803229ac39550245  applewmproto-1.3.0.tar.bz2
SHA1: 81e887ce7bc1969544868d7a79270fd21c9e9d4e   
applewmproto-1.3.0.tar.bz2

http://xorg.freedesktop.org/archive/individual/proto/applewmproto-1.3.0.tar.gz
MD5: a479b9237e537716dacdc4cc14ea40ee  applewmproto-1.3.0.tar.gz
SHA1: 2f8e6608ef30c0ee364573e52ab81e83d03d8a6f   
applewmproto-1.3.0.tar.gz

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


[ANNOUNCE] libAppleWM 1.3.0

2009-07-03 Thread Jeremy Huddleston
Jeremy Huddleston (3):
  Remove compile warning about signedness
  Added XAppleWMAttachTransient for SnowLeopard
  1.3.0

git tag: libAppleWM-1.3.0

http://xorg.freedesktop.org/archive/individual/lib/libAppleWM-1.3.0.tar.bz2
MD5: e79128571bb64e4c1286b8a1a8c4b8ab  libAppleWM-1.3.0.tar.bz2
SHA1: 8fb77026babb9d96eba57e826bb92e8ff7fd767f  libAppleWM-1.3.0.tar.bz2

http://xorg.freedesktop.org/archive/individual/lib/libAppleWM-1.3.0.tar.gz
MD5: 8b44b7489994a576cfed56204fb07241  libAppleWM-1.3.0.tar.gz
SHA1: 0129a179fa45c0261b2d47cbaefbca8696b2116d  libAppleWM-1.3.0.tar.gz
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg