Problem - cursor keys do not work without "-kb" in Java applications with Dvorak layout. What should I do?
Hello, I am using Dvorak layout on Windows and connect to Solaris box with XWin. If I do not add "-kb" option cursor keys do not work in all Java applications, but the option also forces me to use default qwerty layout. The layout was working some time ago, then I updated Cygwin to the latest stable version (including xorg-x11-base 6.7.0.0-8) and cursor keys stopped working. What can I do? - Alexey. Ps. "-clipboard" froze XServer too.
Pointer bug in multiwindow mode (native window manager)
Using the current Cygwin X Server in multiwindow mode (i.e. Windows native window manager), I get the X pointer when the mouse is in the menu, toolbar and scrollbar areas of Gnome applications. The problem goes away when I switch to rootless mode and run another window manager, such as metacity. The "About..." box doesn't tell me what version I'm running, but it explicitly calls itself a work in progress so I'll refrain from submitting a bug report for that, but I upgraded Cygwin this morning. Cheers, Tom
Re: Is it somehow possible to start Windows applications from xterm so that they "remain" in X-Server area?
On Tue, Jun 01, 2004 at 05:38:52PM +0200, David Fraser wrote: >BTW what mailing list should we discuss this on? cygwin-xfree cgf
Re: Is it somehow possible to start Windows applications from xterm so that they "remain" in X-Server area?
Alexander Gottwald wrote: On Tue, 1 Jun 2004, David Fraser wrote: Alexander Gottwald wrote: But I'm still getting segfaults. The msgbox example segfaults in cygwin1!aclcheck. Are you using the latest packages or some older ones? Probably a bit older but not too old ... attached my packages list cygwin 1.3.22 I guess that's the main difference. I've updated to cygwin 1.5.9 now, and reproduced your bug I haven't tried it on a clean install. It is worthwhile checking out previous error messages or using gdb for a backtrace ... in my case the segfault was a font encoding issue, might be different for you The backtrace ended in cygwin1.dll. I'll try a debug build later. I found that commenting out the add_uithread calls as in the following patch got the msgbox example to work. But the withdll still doesn't work. Will be interested to hear the debug build result. BTW what mailing list should we discuss this on? David diff -ur peace.orig/dll/ui.so/winuser.cc peace/dll/ui.so/winuser.cc --- peace.orig/dll/ui.so/winuser.cc 2003-03-12 14:38:37.0 +0200 +++ peace/dll/ui.so/winuser.cc 2004-06-01 17:32:28.912746295 +0200 @@ -215,13 +215,13 @@ case DLL_THREAD_ATTACH: #ifdef __CYGWIN__ - add_uithread(GetCurrentThreadId()); + // add_uithread(GetCurrentThreadId()); #endif break; case DLL_THREAD_DETACH: #ifdef __CYGWIN__ - del_uithread(GetCurrentThreadId()); + // del_uithread(GetCurrentThreadId()); #endif break; }
Cut&Paste in xterm
Dear all, happy my question about possibilty to start windows applications direclty has provoked rather vivid discusion. Now for a change extremly dumb question: Cut & paste inside xterm of cygwin X-server does not work neither traditional highlight and point to where you want to have it method, not ctrl-c/ctrl-v method. So, what is the trick? With Best Regards Ariel Burbaickij -- "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen! Jetzt aktivieren unter http://www.gmx.net/info
Re: Is it somehow possible to start Windows applications from xterm so that they "remain" in X-Server area?
On Tue, 1 Jun 2004, David Fraser wrote: > Alexander Gottwald wrote: > > >But I'm still getting segfaults. The msgbox example segfaults > >in cygwin1!aclcheck. Are you using the latest packages or some older > >ones? > > > > > Probably a bit older but not too old ... attached my packages list > cygwin 1.3.22 I guess that's the main difference. > I haven't tried it on a clean install. > It is worthwhile checking out previous error messages or using gdb for a > backtrace ... in my case the segfault was a font encoding issue, might > be different for you The backtrace ended in cygwin1.dll. I'll try a debug build later. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
compilation of openbox-3.2 wm
Has anyone successfully built openbox 3.2 for cygwin? Is the performance better than Openbox .99? Linking fails in the last step. Thanks, Charles -- Dr. Charles L. Werner Gamma Remote Sensing AG Thunstrasse 130 CH-3074 Muri b. Bern, Switzerland Tel: +41 31 951 70 05 FAX: +41 31 951 70 08 http://www.gamma-rs.ch
Re: Is it somehow possible to start Windows applications from xterm so that they "remain" in X-Server area?
Alexander Gottwald wrote: On Tue, 1 Jun 2004, David Fraser wrote: Wow! This is amazing! I wish I had known about it before ... Still works, I only had to patch it to set the DEFAULT_CHARSET to Ansi (see ttfont.cc, line 1140 or so for where to patch this) I got some errors with stdint.h vs sys/inttypes.h and LocalAlloc and two other functions had SIZE_T instead of UINT arguments. Yes, I actually forgot another fix I had to make... my full patch attached But I'm still getting segfaults. The msgbox example segfaults in cygwin1!aclcheck. Are you using the latest packages or some older ones? Probably a bit older but not too old ... attached my packages list cygwin 1.3.22 I haven't tried it on a clean install. It is worthwhile checking out previous error messages or using gdb for a backtrace ... in my case the segfault was a font encoding issue, might be different for you Are the debug symbols for the cygwin1.dll still available? Others would know better than me... bye ago Cheers David diff -ur peace.orig/dll/ui.so/keyboard.cc peace/dll/ui.so/keyboard.cc --- peace.orig/dll/ui.so/keyboard.cc 2003-03-12 14:38:37.0 +0200 +++ peace/dll/ui.so/keyboard.cc 2004-06-01 11:38:46.0 +0200 @@ -402,7 +402,7 @@ * @since Windows 98, Windows NT4 SP3 */ EXTERN_C UINT WINAPI -SendInput(UINT nInputs, /* INPUT* */void* pInputs, int size) +SendInput(UINT nInputs, INPUT* pInputs, int size) { ADPRF2("USER32DEBUG", ("SendInput [not implemented] ninputs=%u, size=%d\n", nInputs, size)); diff -ur peace.orig/dll/ui.so/ttfont.cc peace/dll/ui.so/ttfont.cc --- peace.orig/dll/ui.so/ttfont.cc 2003-03-12 14:38:37.0 +0200 +++ peace/dll/ui.so/ttfont.cc 2004-06-01 12:39:51.0 +0200 @@ -1178,6 +1178,7 @@ /* Search for matching font */ int facenamelen = strlen(logfont->lfFaceName); + charset = ANSI_CHARSET; for (int i = 0; i < fontfiles_num; i++) { FontFileInfo *ffi = &fontfiles[i]; diff -ur peace.orig/dll/ui.so/wingdi.cc peace/dll/ui.so/wingdi.cc --- peace.orig/dll/ui.so/wingdi.cc 2003-03-12 14:38:37.0 +0200 +++ peace/dll/ui.so/wingdi.cc 2004-06-01 11:54:59.0 +0200 @@ -210,7 +210,8 @@ guiFont = CreateFontA(12, 0, 0, 0, 0, 0, 0, 0, DEFAULT_CHARSET, 0, 0, 0, 0, default_font_name); - gdiobj_block_free(guiFont); + if (guiFont) +gdiobj_block_free(guiFont); } return guiFont; cygwin-packages.txt.gz Description: GNU Zip compressed data
Re: Is it somehow possible to start Windows applications from xterm so that they "remain" in X-Server area?
On Tue, 1 Jun 2004, David Fraser wrote: > Wow! This is amazing! I wish I had known about it before ... > Still works, I only had to patch it to set the DEFAULT_CHARSET to Ansi > (see ttfont.cc, line 1140 or so for where to patch this) I got some errors with stdint.h vs sys/inttypes.h and LocalAlloc and two other functions had SIZE_T instead of UINT arguments. But I'm still getting segfaults. The msgbox example segfaults in cygwin1!aclcheck. Are you using the latest packages or some older ones? Are the debug symbols for the cygwin1.dll still available? bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Is it somehow possible to start Windows applications from xterm so that they "remain" in X-Server area?
Kensuke Matsuzaki wrote: Hi, On Sun, 30 May 2004, Ariel Burbaickij wrote: I guess the topic says it all, gentlemen ;-) No. There is currently no possibility to do this. The windows application uses GDI to draw to the screen. There is of course the possibility to catch the GDI calls at some point in the windows layers and translate them to X11 but there is currently no project which has managed to create at least code in alpha stage. Sawanaka did that. He ported PEACE on BSD to Cygwin, it seems to be called Cygpeace. His site is wrote in Japanese. Please use online translation :) http://www.d1.dion.ne.jp/~sawanaka/peace/ Screenshot of 'Mine Sweeper' on X http://www.d1.dion.ne.jp/~sawanaka/peace/winmine.jpg It has not been update since March 16, 2003. Kensuke Matsuzaki Wow! This is amazing! I wish I had known about it before ... Still works, I only had to patch it to set the DEFAULT_CHARSET to Ansi (see ttfont.cc, line 1140 or so for where to patch this) Basic instructions for those not wanting to do the translation (actually this is all in the page): Download detours.exe from http://research.microsoft.com/sn/detours/ wget http://www.d1.dion.ne.jp/~sawanaka/peace/cygpeace-030316.tar.gz Then make cygpeace: tar zxvf cygpeace-030316.tar.gz cd peace/dll/cygpeace make make install Note that you make it in the cygpeace directory, don't try make in the ui.so.dll directory To extract and make detours (requires Visual C++) $ ./detours.exe ([unzip to folder:] ./detours) $ cd detours $ rm lib/detours.pdb $ nmake $ cp samples/bin/withdll.exe /usr/local/bin/ To run a standard windows program using the hook to display in XWindows: $ export PEACE_FONTPATH=`cygpath -u $WINDIR/Fonts` $ export DISPLAY=:0.0 $ XWin -rootless & $ openbox & # this is just to run a window manager $ withdll -d:peacehook.dll winmine To compile a program to use the hook interface directly: $ cat msgbox.c #include int main() { MessageBox(NULL, "test", NULL, MB_OK); return 0; } $ gcc msgbox.c -o msgbox -L/usr/local/lib -lui.so $ export DISPLAY=:0.0 $ ./msgbox Voila. It even works on a remote X session from Linux :-) David
Re: Cannot start Cygwin/X
On Mon, 31 May 2004, Yu Yu wrote: > Hi there, > > I downloaded and installed the Cygwin/X. > > But when I typed "startx" in Cygwin, it froze after > displaying the following messages: (It seems there was > some problems with the DISPLAY) How do you know it froze? Describe what you see on the screen. Do you have a personal firewall or VPN software installed? > Welcome to the XWin X Server > Vendor: The Cygwin/X Project > Release: 4.3.0.57 > Contact: [EMAIL PROTECTED] This is a rather old version. Please upgrade to the latest version. The packages are now called xorg-x11-* bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Differnce between Xfree and Xorg
Alexander Gottwald wrote: aroushdi wrote: Alex thank u for looking into it . Can u look up in the thread Xwin and multiple users . May be because I am using the same /tmp for each user . ?? Have you tried the testprogram I sent last weekend? ! I've build a small test program which will query the interface address ! which xwin tries to bind to. ! ! get it from http://www.tu-chemnitz.de/~goal/xfree/gethostbyname.tar.gz ! unpack it, run ./gethostbyname icc68651 and report the output. bye ago NP: Suicide Commando - Never Get Out Hi Alex , Please find below the output of gethostbyname. Sorry to respond a little bit late but I was on vacation . $ gethostbyname icc68651 hostname: icc68651 address: 199.1.100.60 address: 192.168.37.1 address: 192.168.124.1 bye amr