Jon TURNEY wrote:
Thanks for taking a look :-)
Yaakov (Cygwin Ports) wrote:
The issues I notice so far:
- - right click isn't working with gtk2 programs
- - highlight->copy->paste in gnome-terminal isn't working
- - XVideo: extension is available, but can it actually work? (xvinfo
shows no adaptors available.)
From a very quick look, you seem to have dropped the GetTimeInMillis()
part of the patch.
This is critical to pastes and grabs working.
Ok, I've done some testing and omitting this does indeed cause the
right-click and clipboard problems you describe.
Attached is a svn diff against the cygwin-ports svn, which patches os/utils.c
so GetTimeInMillis() uses GetTickCount() for a monotonic clock under cygwin.
This throws up a strange linkage problem: XWin.exe links fine, but all the
other .exes produced (e.g. Xvfb.exe, Xnest.exe) fail to link with the
GetTickCount reference in libos.a unresolved. XWin.exe is presumably
different because it has references to GetTickCount in the .o files linked
to make the final executable. I don't understand the intricacies of cygwin
linking to guess why the linker can't resolve this symbol from kernel32 in
this case. I've worked around this by adding a -Wl,[EMAIL PROTECTED]
to the link line which seems to work to force it to be resolved, but I've no
idea if this is the correct solution.
I agree that enabling XVideo doesn't make much sense or do anything useful,
I had it off in my .cygport, so this patch also changes the .cygport to add
--disable-xv to the configuration.
(Clients built with existing libraries use this to timestamp events,
without this change the
server is built using epoch time, so all client events seem to come from
the impossibly
distant future and are ignored)
It's probably neater to just patch this in os/utils.c
I'll take a look an XVideo later...
Index: xorg-server-1.3.0.0-1.cygport
===================================================================
--- xorg-server-1.3.0.0-1.cygport (revision 4607)
+++ xorg-server-1.3.0.0-1.cygport (working copy)
@@ -30,6 +30,7 @@
1.3-xdamage.patch
1.3-xwin.patch
1.3-xwin-config.patch
+ 1.3-gettimeinmillis.patch
"
DIFF_EXCLUDES="xf86Build.h *-config.h xorg-server.h"
@@ -52,6 +53,7 @@
--disable-xorgcfg \
--disable-xprint \
--disable-xsdl \
+ --disable-xv \
--with-fontdir=/usr/share/fonts \
--with-log-dir=/tmp \
--with-mesa-source=${S}/../Mesa-${MESA_VERSION} \
Index: 1.3-gettimeinmillis.patch
===================================================================
--- 1.3-gettimeinmillis.patch (revision 0)
+++ 1.3-gettimeinmillis.patch (revision 0)
@@ -0,0 +1,34 @@
+--- origsrc/xorg-server-1.3.0.0/os/utils.c 2007-04-20 03:13:13.000000000
+0100
++++ src/xorg-server-1.3.0.0/os/utils.c 2008-10-08 12:09:59.062500000 +0100
+@@ -532,6 +532,13 @@
+ errno = olderrno;
+ }
+
++#if defined(__MINGW32__) || defined(__CYGWIN__)
++_X_EXPORT CARD32
++GetTimeInMillis (void)
++{
++ return GetTickCount ();
++}
++#else
+ _X_EXPORT CARD32
+ GetTimeInMillis(void)
+ {
+@@ -546,6 +553,7 @@
+ X_GETTIMEOFDAY(&tv);
+ return(tv.tv_sec * 1000) + (tv.tv_usec / 1000);
+ }
++#endif
+
+ _X_EXPORT void
+ AdjustWaitForDelay (pointer waitTime, unsigned long newdelay)
+--- origsrc/xorg-server-1.3.0.0/configure.ac 2008-10-08 12:47:33.890625000
+0100
++++ src/xorg-server-1.3.0.0/configure.ac 2008-10-08 17:44:48.265625000
+0100
+@@ -1439,6 +1439,7 @@
+ AC_DEFINE(HAS_DEVWINDOWS,1,[Cygwin has /dev/windows for
signaling new win32 messages])
+ AC_DEFINE(ROOTLESS,1,[Build Rootless code])
+ CFLAGS="$CFLAGS -DFD_SETSIZE=256"
++ LDFLAGS="-Wl,[EMAIL PROTECTED]"
+ ;;
+ mingw*)
+ PKG_CHECK_MODULES([XWINMODULES],[x11 xdmcp xau xfont])
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general