Re: How to use to connect to Linux X Windows?

2004-04-19 Thread Eric B.
Thanks for the link.  Reading it prompted me to read the XDMCP Howto, which
helped out significantly.

I followed the instructions in the XDMCP howto, and managed to connect no
problem from one computer.  However, when I follow exactly the same setup
steps for Cygwin on another computer, I am unable to connect remotely to the
XDM on my Linux machine.  Xwin just opens with a blank screen.  Both
machines are on the same internal subnet and I am issuing the same command
to both (Xwin -query 192.168.2.1).

Is there any debugging information I can turn on to find out what machine #1
is doing that machine #2 is not?  I even went as far as copying the Cygwin
directory from the functional machine to the non-functional one in case
there was a problem with the install, but that did not make a difference
either.

Any help or advice would be greatly appreciated!

Thanks,

Eric

"Brian Chase" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> https://listman.redhat.com/archives/k12osn/2004-February/msg00206.html
>
>
> Eric B. wrote:
> > Hi,
> >
> > I'm completely new to Cygwin (and have been away from X-Windows in
general
> > for a number of years) and am looking for a howto or some instructions
how
> > to get my Cygwin installation to display my Linux machine's X terms.
> >
> > Basically, I've got an installation of Linux (RHEL 3.0) that I'd like to
> > administer from my Windows machine.  Ideally, I'd like to be able to
connect
> > to my Linux machine and use the Xwin server from the Linux machine, but
have
> > it disaply on my Windows PC instead.
> >
> > Is there some documentation out there that can help me?
> >
> > Thanks,
> >
> > Eric
> >
> >
>
>





Koywvjus bvy H'y_d_roc_0_d_0`n_e 0n1ine, f.r.ee overnight ship.ping

2004-04-19 Thread rufus dydell
choice-use  delitos  ecanga  ferlauto  eerefnoc

Using the speed and user-f.riendliness of the Internet we have simplified
your ability to research your 0wn health problems and autonomously discover
the available options for treatment. 

0rder V`ic0-din 0nline Anytime

Fedex delivery.

http://ncegvs.net.wen6t.com/?p=809748

Your comfort and convenience is our prime concern. 

D^rop me:  http://s.dra.er5d1.com/d.html

At Sunday School they were teaching how God created everything, including
human beings. Little Tommy, a child in¡¡the kindergarten class, seemed
especially intent when they told him how Eve was created out of one of
Adam's ribs.Later in the week his mother noticed him lying down as though he
were ill, and asked, "Tommy, what's the matter?"Little Tommy responded, "I
have a pain in my side. I think I'm gonna have a wife."
My mother and I were standing at he check-out in the supermarket as the
cashier scanned the things we bought. When the price of a bottle of orange
juice was scanned as $4,, my mother said "It's only $3.95."The cashier
stopped wheat she was doing and disappeared down one of the aisles to check
the price. she soon returned and said that the price was $3.95. When she
handed my mother the change, a five cent coin rolled onto the floor. Much to
my amusement, as the cashier bent over to search for it, my mother said "Oh,
don't bother, it's only five cents." 
sensituu7souhatu05choxo,syakubuk tadore. 



Re: XWin -multiwindow menu problem (Was: XWinrc bugs)

2004-04-19 Thread Brian Chase
I've had some problems with XWin as well, here's what I get:

[EMAIL PROTECTED] ~
$ export DISPLAY=:0
[EMAIL PROTECTED] ~
$ Xwin -multiwindow -clipboard &
[1] 2068
[EMAIL PROTECTED] ~
$ Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.7.0.0-4
Contact: [EMAIL PROTECTED]

XWin was started with the following command line:

Xwin -multiwindow -clipboard

OsVendorInit - Creating bogus screen 0
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
winValidateArgs - Returning.
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0007
winScreenInit - dwWidth: 1280 dwHeight: 1024
winSetEngine - Multi Window or Rootless => ShadowGDI
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per 
pixel
winCreateBoundingWindowWindowed - User w: 1280 h: 1024
winCreateBoundingWindowWindowed - Current w: 1280 h: 1024
winAdjustForAutoHide - Original WorkArea: 0 0 996 1280
winAdjustForAutoHide - Adjusted WorkArea: 0 0 996 1280
winCreateBoundingWindowWindowed - WindowClient w 1280 h 996 r 1280 l 0 b 
996 t 0

winCreateBoundingWindowWindowed -  Returning
winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 996 depth: 32
winAllocateFBShadowGDI - Dibsection width: 1280 height: 996 depth: 32 
size image
: 5099520
winAllocateFBShadowGDI - Created shadow stride: 1280
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 
bpp 32
winRandRInit ()
winCreateDefColormap - Deferring to fbCreateDefColormap ()
null screen fn ReparentWindow
null screen fn RestackWindow
winFinishScreenInitFB - Calling winInitWM.
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitWM - Returning.
winFinishScreenInitFB - returning
winInitMultiWindowWM - Hello
winMultiWindowXMsgProc - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
winScreenInit - returning
InitOutput - Returning.
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack 
of shar
ed memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "0409" (0409)
(EE) Keyboardlayout "US" (0409) is unknown
Rules = "xorg" Model = "pc101" Layout = "us" Variant = "(null)" Options 
= "(null
)"
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing 
from li
st!
winPointerWarpCursor - Discarding first warp: 640 498
winBlockHandler - Releasing pmServerStarted
winInitMultiWindowWM - pthread_mutex_lock () returned.
winBlockHandler - pthread_mutex_unlock () returned
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened 
the disp
lay.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully 
opened the di
splay.
winClipboardProc - XOpenDisplay () returned and successfully opened the 
display.

winClipboardWindowProc - WM_DRAWCLIPBOARD - Initializing - Returning.
winProcSetSelectionOwner - Clipboard not yet started, aborting.
winProcSetSelectionOwner - Clipboard not yet started, aborting.
then it locks up...



Rodrigo Medina wrote:

Hi Earle,

At Sun, 18 Apr 2004 22:35:12 -0700 Earle F. Philhower, III wrote:

 

That's good troubleshooting, a patch that works around the W95 bug
was committed to CVS.  (Are you able to run the latest cygwin DLLs
under W95 still?  When I was running cygwin w/W95A+IE5.5sp2 under
bochs I got nothing but bluescreens in cygwin1.dll...)
   

I have been working with cygwin/X  under Win95 for more than 2 years
without too much problem. Lately, from cygwin1 1.5.6 up to 1.5.9 there
was a bug with threads that crashed XWin -multiwindow. This problem was
solved in the more recent snapshots. As I understand that there are
difficulties to check the new software in Win95, I have decided to try
all new snapshots and versions of XWin as soon as possible.
bye
Rodrigo Medina
	  	
 	  	
 




RE: XWin -multiwindow menu problem (Was: XWinrc bugs)

2004-04-19 Thread Rodrigo Medina
Hi Earle,

At Sun, 18 Apr 2004 22:35:12 -0700 Earle F. Philhower, III wrote:

>That's good troubleshooting, a patch that works around the W95 bug
>was committed to CVS.  (Are you able to run the latest cygwin DLLs
>under W95 still?  When I was running cygwin w/W95A+IE5.5sp2 under
>bochs I got nothing but bluescreens in cygwin1.dll...)

I have been working with cygwin/X  under Win95 for more than 2 years
without too much problem. Lately, from cygwin1 1.5.6 up to 1.5.9 there
was a bug with threads that crashed XWin -multiwindow. This problem was
solved in the more recent snapshots. As I understand that there are
difficulties to check the new software in Win95, I have decided to try
all new snapshots and versions of XWin as soon as possible.

bye
Rodrigo Medina





Typing bug in XWin.man

2004-04-19 Thread Rodrigo Medina
Hi all,
I have found this in XWin.man:

date (April 2004) the option is still not fully operativer; the
 

bye

Rodrigo Medina




Re: Problem with xterm and cygxft-2.dll after update

2004-04-19 Thread Mark Arnold
Harold L Hunt II  msu.edu> writes:

> 
> You need the libXft and libXft2 packages.  I'm not sure why libXft2 was 
> not selected automatically.
> 
> Harold
> 

Hi Harold,

Thanks for the tip, after a little rummaging around I found the 2 packages and
installed them and all is now back to normal.


thanks again,

Mark





XWin 6.7.0.0-4 hangs with -clipboard

2004-04-19 Thread Carl Holmberg
Hi,

The hard-hangs of XWin using -clipboard are still present in the 
latest code (6.7.0.0-4 of xorg-x11-xwin).  I have some strace 
info below, as well as the XWin.log, in case that might be 
useful.  

This is on a Win98SE system, updated to the latest Cygwin code 
(as of about 6 hours ago).  The hang is easily triggered with 
only a few mouse button clicks. Set a mark (left click) and 
right click anywhere will usually cause the hard hang.  Multiple 
left clicks will do it too (usually by 3rd left-button click).
The mouse clicks don't have to be rapid (e.g. can be many 
seconds apart).   

In this example, I used the default startxwin.sh, with an added 
-logverbose 255 (hoping this might trigger extra logging...).

In the hung state, XWin does not respond (nor do any subordinate 
xterms).  The X-icon in the tray does not respond either.  Have 
to kill -9.  The XWin.log is at the end of this message.

Below is a strace log just before the hang.  A more complete 
strace from the time the first xterm came up and strace was 
attached is also available - as is a cygcheck -cvsr, if anybody 
wants it.

Hope this helps.

##
Final lines of strace up to hang.  Note the errno 11:
##


  416 92699321 [main] XWin 3231135 select_stuff::poll: returning 
1
  414 92699735 [main] XWin 3231135 select_stuff::cleanup: 
calling cleanup routines
  403 92700138 [main] XWin 3231135 select_stuff::~select_stuff: 
deleting select records
  403 92700541 [main] XWin 3231135 free: (0x1019C460), called by 
0x6108173B
  511 92701052 [main] XWin 3231135 free: (0x1019CE08), called by 
0x6108173B
  408 92701460 [main] XWin 3231135 free: (0x10186260), called by 
0x6108173B
  416 92701876 [main] XWin 3231135 free: (0x1019E638), called by 
0x6108173B
  411 92702287 [main] XWin 3231135 free: (0x10176E08), called by 
0x6108173B
  415 92702702 [main] XWin 3231135 free: (0x10183E10), called by 
0x6108173B
  410 92703112 [main] XWin 3231135 free: (0x1019CE68), called by 
0x6108173B
  468 92703580 [main] XWin 3231135 readv: readv (9, 0xADEA10, 1) 
nonblocking, sigcatchers 3
  565 92704145 [main] XWin 3231135 peek_socket: considering 
handle 0x1DC
  401 92704546 [main] XWin 3231135 peek_socket: adding read 
fd_set , fd 9
  514 92705060 [main] XWin 3231135 peek_socket: WINSOCK_SELECT 
returned 1
  432 92705492 [main] XWin 3231135 
fhandler_base::ready_for_read: read_ready 1, avail 1
  507 92705999 [main] XWin 3231135 readv: 36 = readv (9, 
0xADEA10, 1), errno 0
  597 92706596 [unknown (0xFFF270C1)] XWin 3231135 
select_stuff::wait: woke up.  wait_ret 2.  verifying
  493 92707089 [unknown (0xFFF270C1)] XWin 3231135 peek_windows: 
window 14(0x0) not ready
  416 92707505 [unknown (0xFFF270C1)] XWin 3231135 
select_stuff::wait: gotone 0
  425 92707930 [unknown (0xFFF270C1)] XWin 3231135 
select_stuff::wait: looping
  687 92708617 [unknown (0xFFF270C1)] XWin 3231135 
select_stuff::wait: woke up.  wait_ret 2.  verifying
  579 92709196 [unknown (0xFFF270C1)] XWin 3231135 writev: 
writev (12, 0x322E7F8, 1)
 3587 92712783 [unknown (0xFFF270C1)] XWin 3231135 writev: 4 = 
write (12, 0x322E7F8, 1), errno 0
  924 92713707 [unknown (0xFFF270C1)] XWin 3231135 readv: readv 
(12, 0x322E7F8, 1) nonblocking, sigcatchers 3
  977 92714684 [unknown (0xFFF270C1)] XWin 3231135 peek_socket: 
considering handle 0x264
 1061 92715745 [unknown (0xFFF270C1)] XWin 3231135 peek_socket: 
adding read fd_set , fd 12
 1589 92717334 [unknown (0xFFF270C1)] XWin 3231135 peek_socket: 
WINSOCK_SELECT returned 0
  914 92718248 [unknown (0xFFF270C1)] XWin 3231135 
fhandler_base::ready_for_read: read_ready 0, avail 0
 1127 92719375 [unknown (0xFFF270C1)] XWin 3231135 readv: -1 = 
readv (12, 0x322E7F8, 1), errno 11



  889 92720264 [unknown (0xFFF270C1)] XWin 3231135 
cygwin_select: 13, 0x322E7E8, 0x0, 0x0, 0x0
 1005 92721269 [unknown (0xFFF270C1)] XWin 3231135 calloc: (1, 
44) = 1019CE68, called by 61001CB9
  940 92722209 [unknown (0xFFF270C1)] XWin 3231135 
dtable::select_read:  fd 12
  859 92723068 [unknown (0xFFF270C1)] XWin 3231135 
cygwin_select: to NULL, ms 
 1401 92724469 [unknown (0xFFF270C1)] XWin 3231135 
cygwin_select: sel.always_ready 0
  877 92725346 [unknown (0xFFF270C1)] XWin 3231135 calloc: (1, 
12328) = 1018A2F8, called by 61001CB9
  879 92726225 [unknown (0xFFF270C1)] XWin 3231135 
start_thread_socket: Handle 0x264
  942 92727167 [unknown (0xFFF270C1)] XWin 3231135 
start_thread_socket: Added to readfds
 5015 92732182 [unknown (0xFFF270C1)] XWin 3231135 
start_thread_socket: exitsock 0x2B8
 1140 92733322 [unknown (0xFFF270C1)] XWin 3231135 
start_thread_socket: stuff_start 0x322E74C
  659 92733981 [unknown (0xFFF270C1)] XWin 3231135 
cygthread::cygthread: name select_socket, id 0xFFF27655
  934 92734915 [unknown (0xFFF270C1)] XWin 3231135 
cygthread::cygthread: activated thread_sync 0x22C
  982 92735897 [select_socket] XWin 3231135 thread_socket: 
stuff_start

Re: How to use to connect to Linux X Windows?

2004-04-19 Thread Brian Chase
https://listman.redhat.com/archives/k12osn/2004-February/msg00206.html

Eric B. wrote:
Hi,

I'm completely new to Cygwin (and have been away from X-Windows in general
for a number of years) and am looking for a howto or some instructions how
to get my Cygwin installation to display my Linux machine's X terms.
Basically, I've got an installation of Linux (RHEL 3.0) that I'd like to
administer from my Windows machine.  Ideally, I'd like to be able to connect
to my Linux machine and use the Xwin server from the Linux machine, but have
it disaply on my Windows PC instead.
Is there some documentation out there that can help me?

Thanks,

Eric





How to use to connect to Linux X Windows?

2004-04-19 Thread Eric B.
Hi,

I'm completely new to Cygwin (and have been away from X-Windows in general
for a number of years) and am looking for a howto or some instructions how
to get my Cygwin installation to display my Linux machine's X terms.

Basically, I've got an installation of Linux (RHEL 3.0) that I'd like to
administer from my Windows machine.  Ideally, I'd like to be able to connect
to my Linux machine and use the Xwin server from the Linux machine, but have
it disaply on my Windows PC instead.

Is there some documentation out there that can help me?

Thanks,

Eric





Re: running netscape fails to open

2004-04-19 Thread Alexander Gottwald
On Mon, 19 Apr 2004, Yadin Y. Goldschmidt wrote:

> I found the answer myself by reading previous posts, I have to use -Y
> instead of -X. Still why does xemacs works with -X and netscape doesn't?

check the faq. it describes the difference between -Y and -X and google
will point you to lot to read about trusted and untrusted X11 

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: Forked call

2004-04-19 Thread Alexander Gottwald
On Mon, 19 Apr 2004, Darryl Scott wrote:

> Hi!
> 
> I can find no input to this problem in the cygwin docs etc.
> 
> This problem does not occur if the Cygwin X server is used by the 
> executables that are compiled in SFU. It only happens when the executables 
> are Cygwin derived.
> 
>  From X app 1 I call a simple fork programme using a system call. This fork 
> programme calls another X app using execv, the details of which have been 
> passed to it as arguments.  The fork programme dies returning control to X 
> app1. The X app2 initiates and processes through all actions up to display. 
> It appears to pick up all  the relevant X environment enquiries correctly. 
> Under SFU it progresses to display and operates as required. Under Cygwin 
> it dies, I have tried trapping signals but have found none.

Sorry, we can't help you with these vague description. Build a testcase which
is very small and which triggers the problem. Then we might be able to track
this down. 

> This suggest that the X server is happy as it works with SFU and that the 
> problem is something I have to do with the cygwin generated X-app.

More likely it has something to do with the fork implementation on cygwin and
this is a question (aamong with all your other SFU to cygwin porting questions)
which belongs to [EMAIL PROTECTED]

> Input greatly appreciated.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Initial Comments From a Noob

2004-04-19 Thread Wilks, Dan
Hey all

With that out of the way... Last Friday (4/15/04) I updated my Cygwin tools
(longtime user) and installed (for the first time) all the Cygwin/X servers
& apps (setup/x11-base 6.7.0.0-7, cygcheck XFree86-xserv 4.3.0-68).  I got
up and running over a PuTTY-supplied ssh tunnel without too much grief (I'll
deal with a Cygwin tunnel later).  I'm running XWin.exe with -multiwindow
-clipboard.  Here's a list, roughly in descending order of pain, of the
things I've run into in the past day or so.  Some are already on to do lists
but they're here again just for ranking's sake.

- The amount of effort y'all have put into this project is amazing.  Great
job.  

- Paste Win -> X: Today I copied a command-line from a Word doc, or perhaps
a web page and tried to paste it into my xterm.  The only thing pasting into
X was something I had copied from another xterm earlier.  Even now, even
though I can paste Win32 copied text into Notepad it won't paste into xterm
or emacs.  I know that copy/paste worked in both directions when I first
started up the X server.  I've had this same thing happen with Exceed and
XWin32.  Maybe with a bit more active and accessible development effort we
can make this more reliable.

- Ctrl-Shift-Tab: What can I say, I'm too used to Windows.  I use emacs w/
cua.el and added ctrl-tab/ctrl-shift-tab bindings to cycle through the
buffer list.  I can't say for sure if this was working on Friday or not, but
today it doesn't do anything.
   (global-set-key [(C-S-kp-tab)] (lambda ()
   (interactive)
   (crs-bury-buffer -1)))

- Desktop resize: When I remote desktop into my computer and the screen size
changes the background window isn't resizing yet.  I saw that the first bit
of code is in an #if 0 state.  I'm looking forward to the implementation.

- Windows Cursor: At the moment the Windows cursor isn't being hidden while
its over the x window client area.  This just started this morning when I
came back from the weekend.  Could be some sort of artifact from remote
desktop use?  Anyway there's quite an art to ignoring the Windows cursor
especially when it isn't a simple arrow (window resize arrow for instance). 

- Popup windows(?): Using the IntelliJ IDEA I can press Alt+F to bring up
the file menu.  Let go of the Alt key, then press Alt-Tab to switch to
another window.  If it's another X window, the file menu eventually goes
away.  If it's a Windows window (this message in Outlook for example) the
file menu never goes away.

- X Tooltips (not sure what they're called in x) can popup over non X
windows.  For example, open emacs and then switch to a non-x app like
Outlook.  From time to time it appears as if XWin hasn't released mouse
capture and the tooltips from emacs (icon bar, status bar, ...) will pop up
over the non-x application.

- Painting:  If you click in the title bar of an xterm buried behind another
one and drag the window, the contents of the top window are dragged around
until the window gets a chance to be repainted.  Also this morning when
bringing up hidden xterms the xterm window was painted with the contents of
the hidden root window before the underlying xwindow(?) had been brought to
the foreground.  Neither of these are problems just entertaining to watch.

Dan




Re: running netscape fails to open

2004-04-19 Thread Yadin Y. Goldschmidt
I found the answer myself by reading previous posts, I have to use -Y
instead of -X. Still why does xemacs works with -X and netscape doesn't?
"Yadin Y. Goldschmidt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I connect to a unix host using ssh -X hostname.
> When I issue the command xemacs& or emacs& it opens a window on my
desktop.
> but when I issue the command netscape I get the following error:
> (76) unixs1 % netscape &
> [1] 15126
> (77) unixs1 % Warning: Cannot convert string "Escape,_Key_Cancel" to
> type VirtualBinding
> Warning: Cannot convert string "Home,_Key_Begin" to type
VirtualBinding
> Warning: Cannot convert string "F1,_Key_Help" to type VirtualBinding
> Warning: Cannot convert string "ShiftF10,_Key_Menu" to type
> VirtualBinding
> Warning: Cannot convert string "F10,Shift_Key_Menu" to type
> VirtualBinding
> Warning: Cannot convert string "KP_Enter,_Key_Execute" to type
> VirtualBinding
> Warning: Cannot convert string "AltReturn,Alt_Key_KP_Enter" to type
> VirtualBinding
> X Error of failed request:  BadDrawable (invalid Pixmap or Window
parameter)
>   Major opcode of failed request:  73 (X_GetImage)
>   Resource id in failed request:  0x56
>   Serial number of failed request:  78
>   Current serial number in output stream:  78
>
> I tried also another x client (xwin32) and netscape worked fine. So this
> appears to be a bug in cygwin-xfree.
> Am I doing something wrong?
> I run the latest version of cygwin.
>
>
>
>





Re: numlock

2004-04-19 Thread Thomas Chadwick
From: "J S" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: numlock
Date: Sun, 18 Apr 2004 09:36:37 +
[snip]

Thanks for your reply. Unfortunately our users' boxes are locked down 
(they're on XP) so they wouldn't be able to edit that file. I was really 
looking for a way to do this from the XFree startup script or configuration 
anyway.
OK.  You asked for it.  Below is a short C program which will check the 
state of the NumLock key and synthesize a keydown/keyup sequence of the 
NumLock key if it's down.  Works on my box, which is Win2K, but I'm led to 
believe from the documentation that it should work with any 32-bit 
implementation of windows.

To build it, copy-paste the following source into a file (e.g. 
"numlockoff.c") then run gcc on it (e.g. "gcc -o numlockoff numlockoff.c").  
Then add that to a convenient location on your client systems and add a call 
to it in your X startup script.

#include 
#define _WIN32_WINNT 0x0500
#include 
int main()
{
   INPUT pInput[2];
   if (GetKeyState(VK_NUMLOCK) == 1)
   {
   pInput[0].type   = INPUT_KEYBOARD;
   pInput[0].ki.wVk = VK_NUMLOCK;
   pInput[0].ki.wScan   = 0;
   pInput[0].ki.dwFlags = 0; /* Nill for keydown */
   pInput[0].ki.time= 0;
   pInput[0].ki.dwExtraInfo = 0;
   pInput[1].type   = INPUT_KEYBOARD;
   pInput[1].ki.wVk = VK_NUMLOCK;
   pInput[1].ki.wScan   = 0;
   pInput[1].ki.dwFlags = KEYEVENTF_KEYUP;
   pInput[1].ki.time= 0;
   pInput[1].ki.dwExtraInfo = 0;
   if (SendInput(2, pInput, sizeof(INPUT)) == 0)
   {
   fprintf(stderr, "Error: SendInput failed.  NumLock was not 
turned off.\n");
   }
   }
}

_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/



running netscape fails to open

2004-04-19 Thread Yadin Y. Goldschmidt
I connect to a unix host using ssh -X hostname.
When I issue the command xemacs& or emacs& it opens a window on my desktop.
but when I issue the command netscape I get the following error:
(76) unixs1 % netscape &
[1] 15126
(77) unixs1 % Warning: Cannot convert string "Escape,_Key_Cancel" to
type VirtualBinding
Warning: Cannot convert string "Home,_Key_Begin" to type VirtualBinding
Warning: Cannot convert string "F1,_Key_Help" to type VirtualBinding
Warning: Cannot convert string "ShiftF10,_Key_Menu" to type
VirtualBinding
Warning: Cannot convert string "F10,Shift_Key_Menu" to type
VirtualBinding
Warning: Cannot convert string "KP_Enter,_Key_Execute" to type
VirtualBinding
Warning: Cannot convert string "AltReturn,Alt_Key_KP_Enter" to type
VirtualBinding
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  73 (X_GetImage)
  Resource id in failed request:  0x56
  Serial number of failed request:  78
  Current serial number in output stream:  78

I tried also another x client (xwin32) and netscape worked fine. So this
appears to be a bug in cygwin-xfree.
Am I doing something wrong?
I run the latest version of cygwin.





RE: Multiple monitors and repainting

2004-04-19 Thread david.martinez

That worked great, thanks!


-Original Message-
From: Earle F. Philhower, III [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 4:52 PM
To: [EMAIL PROTECTED]
Subject: Re: Multiple monitors and repainting


David,

Add -multiplemonitors to your XWin command line.


-- Original Message -
Subject: Multiple monitors and repainting
Date: Thu, 15 Apr 2004 10:57:57 -0700
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>



I have an NVidia  DualView card (Quadro NVS) with two monitors attached
to it.

My monitors are laid out as "2"->"1" (#2 on the left).

I recently upgraded to the new xorg x11 via setup. The version is
xorg-x11 6.7.0.0-6. I start X with startxwin.bat. I'm using Windows
2000.


The problem is this: If you move an xterm from one screen to the next
(they appear on #2, and I move them to #1), the window stops repainting.
If I move half, the half that was on #2 still repaints, while the #1
half does not.

I'm wondering if you are aware of this issue, and if you have any
solutions or workarounds.

For now all my consoles live in monitor #2 :-)

Thanks,


-David Martinez

-- 
-Earle F. Philhower, III
 [EMAIL PROTECTED]
 http://www.ziplabel.com



Renaming 'xfree' mailing lists?

2004-04-19 Thread Ed Avis
Now that Cygwin is using xorg instead of XFree86, will this mailing
list and xfree-announce be renamed?

-- 
Ed Avis <[EMAIL PROTECTED]>




Re: libc

2004-04-19 Thread Harold L Hunt II
Darryl Scott wrote:
Hi!

I cannot find any reference to a problem with this in the Cygwin docs, 
redhat site etc.

Libc has as a standard catgets. But catgets and catopen are absent from 
the cygwin implementation and gencat and nl_types are not to be found.

So where can I find either the source for these or a technical spec?

I am reluctant to simply incorporate a libc containing these as this may 
interfere with the workings of Cygwin. True or False?

I have asked this before but received no reply as I guess the question 
was considered either stupid or off topic. My my perspective the 
question is neither.
Can I have some input please?
Wrong mailing list.  This question has nothing to do with the X Window 
System.

Harold


Forked call

2004-04-19 Thread Darryl Scott
Hi!

I can find no input to this problem in the cygwin docs etc.

This problem does not occur if the Cygwin X server is used by the 
executables that are compiled in SFU. It only happens when the executables 
are Cygwin derived.

From X app 1 I call a simple fork programme using a system call. This fork 
programme calls another X app using execv, the details of which have been 
passed to it as arguments.  The fork programme dies returning control to X 
app1. The X app2 initiates and processes through all actions up to display. 
It appears to pick up all  the relevant X environment enquiries correctly. 
Under SFU it progresses to display and operates as required. Under Cygwin 
it dies, I have tried trapping signals but have found none.

This suggest that the X server is happy as it works with SFU and that the 
problem is something I have to do with the cygwin generated X-app.

True, False or complete rubbish?

Input greatly appreciated.

Kind regards,

Darryl Scott

Profile Product Costing Ltd
The Old Vicarage, Market Place, Castle Donington, DE74 2JB, United Kingdom
Telephone: +44 (0) 1332 856972  FAX: +44 (0) 1332 810769  Mobile +44 (0) 
7808 078388
Web : www.productcosting.com
This email and any attachments have been checked for viruses.




libc

2004-04-19 Thread Darryl Scott
Hi!

I cannot find any reference to a problem with this in the Cygwin docs, 
redhat site etc.

Libc has as a standard catgets. But catgets and catopen are absent from the 
cygwin implementation and gencat and nl_types are not to be found.

So where can I find either the source for these or a technical spec?

I am reluctant to simply incorporate a libc containing these as this may 
interfere with the workings of Cygwin. True or False?

I have asked this before but received no reply as I guess the question was 
considered either stupid or off topic. My my perspective the question is 
neither.
Can I have some input please?

Regards

Darryl Scott




Clipboard mini-hangs with 6.7.0.0-4

2004-04-19 Thread Ed Avis
The clipboard hanging problem is not completely cured.  I am often
unable to paste text from X (in particular, xemacs) into Windows apps;
the hourglass appears for a few seconds and nothing is pasted.
Sometimes I cannot paste from Windows into X; I select some text and
copy it to the Windows clipboard but pasting in X gives some different
text that I selected in X earlier.

The following log file shows (at the end) the mini-hang when pasting
from X into Windows.  I am not running xwinclip.exe at the same time.

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.7.0.0-4

Contact: [EMAIL PROTECTED]

XWin was started with the following command line:

/usr/X11R6/bin/XWin -clipboard -engine 1 -br 

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1200 h 1600
winInitializeDefaultScreens - Returning
OsVendorInit - Creating bogus screen 0
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
winValidateArgs - Returning.
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0007
winScreenInit - dwWidth: 1200 dwHeight: 1600
winSetEngine - Using user's preference: 1
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel
winCreateBoundingWindowWindowed - User w: 1200 h: 1600
winCreateBoundingWindowWindowed - Current w: 1200 h: 1600
winAdjustForAutoHide - Original WorkArea: 0 0 1572 1200
winAdjustForAutoHide - Adjusted WorkArea: 0 0 1572 1200
winCreateBoundingWindowWindowed - WindowClient w 1194 h 1547 r 1194 l 0 b 1547 t 0
winCreateBoundingWindowWindowed -  Returning
winAllocateFBShadowGDI - Creating DIB with width: 1194 height: 1547 depth: 32
winAllocateFBShadowGDI - Dibsection width: 1194 height: 1547 depth: 32 size image: 
7388472
winAllocateFBShadowGDI - Created shadow stride: 1194
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32
winRandRInit ()
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winFinishScreenInitFB - returning
winScreenInit - returning
InitOutput - Returning.
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shared 
memory support in the kernel
(--) Setting autorepeat to delay=250, rate=31
(--) winConfigKeyboard - Layout: "0809" (0809) 
(--) Using preset keyboard for "English (United Kingdom)" (809), type "4"
Rules = "xorg" Model = "pc105" Layout = "gb" Variant = "(null)" Options = "(null)"
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
winPointerWarpCursor - Discarding first warp: 597 773
winBlockHandler - Releasing pmServerStarted
winBlockHandler - pthread_mutex_unlock () returned
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
ddxBeforeReset - Hello
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0007
winScreenInit - dwWidth: 1194 dwHeight: 1547
winSetEngine - Using user's preference: 1
winCreateBoundingWindowWindowed - User w: 1200 h: 1600
winCreateBoundingWindowWindowed - Current w: 1194 h: 1547
winAdjustForAutoHide - Original WorkArea: 0 0 1572 1200
winAdjustForAutoHide - Adjusted WorkArea: 0 0 1572 1200
winCreateBoundingWindowWindowed - WindowClient w 1194 h 1547 r 1194 l 0 b 1547 t 0
winCreateBoundingWindowWindowed -  Returning
winAllocateFBShadowGDI - Creating DIB with width: 1194 height: 1547 depth: 32
winAllocateFBShadowGDI - Dibsection width: 1194 height: 1547 depth: 32 size image: 
7388472
winClipboardProc - DISPLAY=127.0.0.1:0.0
winAllocateFBShadowGDI - Created shadow stride: 1194
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32
winRandRInit ()
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winFinishScreenInitFB - returning
winScreenInit - returning
InitOutput - Returning.
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shared 
memory support in the kernel
(--) Setting autorepeat to delay=250, rate=31
(--) winConfigKeyboard - Layout: "0809" (0809) 
(--) Using preset keyboard for "English (United Kingdom)" (809), type "4"
Rules = "xorg" Model = "pc105" Layout = "gb" Variant = "(null)" Options = "(null)"
Could not init font path element /usr/X11R