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

2004-04-20 Thread Holger Krull
XDM on my Linux machine.  Xwin just opens with a blank screen.  Both
try the -from parameter.





Re: numlock

2004-04-20 Thread J S
Thomas,

Thank-you very very much!!! This is an excellent solution and works like a 
treat!! Thanks so much.

JS.

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 stdio.h
#define _WIN32_WINNT 0x0500
#include windows.h
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/

_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger



Re: numlock

2004-04-20 Thread J S


Could this code be added into the XFree build?

JS.
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 stdio.h
#define _WIN32_WINNT 0x0500
#include windows.h
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/

_
Find a cheaper internet access deal - choose one to suit you. 
http://www.msn.co.uk/internetaccess



how to keep XWin menu open when clicking on an item

2004-04-20 Thread vdu
I would like to be able to click several times on an item of the XWin menu
without it to close, so that I dont need to reopen the menu every time I
click on an item.

-- 
vdu





Mouse drag + leave window oddity...

2004-04-20 Thread Peter Valdemar Mørch
First, I'd like to say how happy I am to be able to use xorg's 
-multiwindow mode, so I can get rid of Labtam's XThinPro (and exceed, 
ReflectionX and whatever else I've used in the past). Great job! I'm 
superhappy!!!

Next, I use W2k and startxwin.bat with XWin -multiwindow -clipboard

In e.g. xemacs (or xterm), use the mouse to select some text. Hold and 
do not release the mouse button yet. Now with the mouse button 
depressed, move the mouse out of the window e.g. onto the MSWindows 
desktop, and release the mouse button. When you move the mouse back into 
that same window, the window will behave as if the mouse button still 
was depressed. Moving the mouse button around (without any mouse button 
pressed) behaves as if button-1 was still pressed.

Hereafter the behavior differs in xterms and xemacs:

In an xterm, clicking the mouse button will change the behavior from the 
above described to behaving normally.

In xemacs (where I spend most of my time) the mouse behavoir continues 
to be a little odd. Some kind of selection is fixed at the time of the 
next click, but the red cursor continues follows the mouse (as if the 
mouse button is still pressed) until I press CTRL-g. I say selection 
because in xemacs normally I only have one selection at a time. But this 
selection is weird in that it persists even when another selection is 
made. In fact there seems to be no way to clear this selection except 
kill-buffer + find-file or kill (the odd pseudo-selection) + undo. (This 
is kinda difficult to describe, but not so difficult to actually do... :-D)

In summary, it appears as if some mouse-release event should be implied 
automatically when the mouse leaves a window. (At least when compared to 
how Windows works or how XFree-86 works under Linux and KDE.)

Ok, so some may say that the test case itself is odd... :-D But I find 
that I see these symptoms sometimes, and it is confusing when it 
happens. I'm not quite certain whether this is the only way to trigger 
it, or indeed the way I myself trigger it, but I see the symptoms above 
once in a while during normal use, and I've found this test case 
reproduces the symptoms reliably. Anybody else aware of other ways to 
trigger it?

Is this a known issue? If not, is there a bug report somewhere I should 
fill out?

Regards,

Peter

[EMAIL PROTECTED]:~ cygcheck -c -d | egrep 'xorg|xemacs|xterm'
xemacs   21.4.15-1
xemacs-emacs-common  21.4.15-1
xorg-x11-base6.7.0.0-7
xorg-x11-bin 6.7.0.0-4
xorg-x11-bin-dlls6.7.0.0-4
xorg-x11-bin-lndir   6.7.0.0-2
xorg-x11-etc 6.7.0.0-1
xorg-x11-fenc6.7.0.0-2
xorg-x11-fnts6.7.0.0-1
xorg-x11-libs-data   6.7.0.0-2
xorg-x11-xwin6.7.0.0-4
xterm185-4
--
Peter Valdemar Mørch
http://www.morch.com


Re: numlock

2004-04-20 Thread Thomas Chadwick
From: J S vervoom ta hotmail tod com
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: numlock
Date: Tue, 20 Apr 2004 09:48:37 +


Could this code be added into the XFree build?
[snip]

Not sure.  That's a question for Harold, et. al. to answer.  The options 
would be to (1) incorporate this code into the XWin codebase and activate 
it via a command-line switch, or (2) include it as a separate executable in 
the xorg-x11-bin package, and call it from the startxwin script.

_
Check out MSN PC Safety  Security to help ensure your PC is protected and 
safe. http://specials.msn.com/msn/security.asp



Re: Mouse drag + leave window oddity...

2004-04-20 Thread Holger Krull

that I see these symptoms sometimes, and it is confusing when it 
happens. I'm not quite certain whether this is the only way to trigger 
it, or indeed the way I myself trigger it, but I see the symptoms above 
once in a while during normal use, and I've found this test case 
reproduces the symptoms reliably. Anybody else aware of other ways to 
trigger it?
I have noticed this effect to (rarely),  but did not found a way to 
reproduce it.
The way you described does not work here to recreate it. I can't move 
the mouse cursor out of the xterm with the button pressed. I'm not using 
multiwindow, maybe that's the difference.

Holger



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

2004-04-20 Thread Eric B.
Holger Krull [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
  XDM on my Linux machine.  Xwin just opens with a blank screen.  Both

 try the -from parameter.


Thanks for the suggestion, but no further ahead.  The Xwin screen just opens
with a blank grey background and the X mouse pointer, but nothing else.  No
window manager, no nothing.  If I leave it open long enough, it times itself
out and restarts.  It does display a msg in the log window though: XDM: too
many retransmission, declaring session dead.  Not sure where to start
looking into that though.

Thanks for some insight!

Eric





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

2004-04-20 Thread Igor Pechtchanski
On Tue, 20 Apr 2004, Eric B. wrote:

 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

Look in the tail of /var/log/messages on the Linux machine for messages
from [xkg]dm.  XDMCP is very sensitive to DNS, so make sure the reverse
DNS lookup from Linux for the IP address of machine #2 returns the correct
FQDN for machine #2.  If you don't have access to the DNS configuration,
simply add machine #2 to the /etc/hosts file on the Linux machine.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


Re: how to keep XWin menu open when clicking on an item

2004-04-20 Thread Alexander Gottwald
On Tue, 20 Apr 2004, vdu wrote:

 I would like to be able to click several times on an item of the XWin menu
 without it to close, so that I dont need to reopen the menu every time I
 click on an item.

Hm. Not sure. Check msdn.microsoft.com for a way to keep the menu open and 
http://x.cygwin.com/docs/cg/cygwin-x-cg.html for a description how to include
that into the XWin codebase and how to send the patch to the mailinglist.


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


Re: how to keep XWin menu open when clicking on an item

2004-04-20 Thread Jack Tanner
vdu wrote:

I would like to be able to click several times on an item of the XWin menu
without it to close, so that I dont need to reopen the menu every time I
click on an item.
You don't expect the Start Menu in Windows to stay open once you launch 
an application off of there, do you?

-JT



Re: how to keep XWin menu open when clicking on an item

2004-04-20 Thread vdu
yes, I do ! try this : shift+click on an item in all programs menu. Do
you see ? the menu stays open.

-- 
vdu

Jack Tanner [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 vdu wrote:

  I would like to be able to click several times on an item of the XWin
menu
  without it to close, so that I dont need to reopen the menu every time I
  click on an item.
 

 You don't expect the Start Menu in Windows to stay open once you launch
 an application off of there, do you?

 -JT







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

2004-04-20 Thread Eric B.
Igor Pechtchanski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Tue, 20 Apr 2004, Eric B. wrote:

  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

 Look in the tail of /var/log/messages on the Linux machine for messages
 from [xkg]dm.  XDMCP is very sensitive to DNS, so make sure the reverse
 DNS lookup from Linux for the IP address of machine #2 returns the correct
 FQDN for machine #2.  If you don't have access to the DNS configuration,
 simply add machine #2 to the /etc/hosts file on the Linux machine.
 Igor


Thanks Igor!

I can't believe I didn't think of looking in /var/log/messages.  I added my
hostname/address ot the /etc/hosts file and it resolved properly and loaded
without problems.

Thanks again!  I was tearing my hair out over this one!

Eric





Re: how to keep XWin menu open when clicking on an item

2004-04-20 Thread Jack Tanner
vdu wrote:

yes, I do ! try this : shift+click on an item in all programs menu. Do
you see ? the menu stays open.
I've been using Windows since version 3.0 and had no idea that 
existed... Actually, it doesn't work in NT 4, at least. Anyone care to 
try in 2000?

Do you propose that this work on all Windows versions, or only on the 
ones that have this shift+click behavior in the Start menu?

Anyhow, if this sounds like an even remotely plausible piece of 
functionality for the tray menu, it makes an ever stronger case for 
moving the program list from the tray menu to the Start menu.

-JT



Re: how to keep XWin menu open when clicking on an item

2004-04-20 Thread Harold L Hunt II
Jack Tanner wrote:
vdu wrote:

yes, I do ! try this : shift+click on an item in all programs 
menu. Do
you see ? the menu stays open.


I've been using Windows since version 3.0 and had no idea that 
existed... Actually, it doesn't work in NT 4, at least. Anyone care to 
try in 2000?

Do you propose that this work on all Windows versions, or only on the 
ones that have this shift+click behavior in the Start menu?

Anyhow, if this sounds like an even remotely plausible piece of 
functionality for the tray menu, it makes an ever stronger case for 
moving the program list from the tray menu to the Start menu.
Right now we have a menu in both places, if you install the 
X-start-menu-icons package.  Why would we want to remove the 
functionality that allows a program list in the tray icon menu when the 
default behavior for that list is to be empty and to not be shown?  Only 
people that want to use it are using it.

Harold


Re: how to keep XWin menu open when clicking on an item

2004-04-20 Thread Jack Tanner
Harold L Hunt II wrote:
Right now we have a menu in both places, if you install the 
X-start-menu-icons package.  Why would we want to remove the 
functionality that allows a program list in the tray icon menu when the 
default behavior for that list is to be empty and to not be shown?  Only 
people that want to use it are using it.
No reason to remove functionality, I'd forgotten X-start-menu-icons existed.

So the answer to vdu's request is -- use X-start-menu-icons and you'll 
have shift+click.

-JT



Re: how to keep XWin menu open when clicking on an item

2004-04-20 Thread vdu
I just wanted to know if a shift+click beahiour is possible in Xwin
menu, if not, that's ok for me.

anyway, thanks to everyone.

-- 
Vincent Dutat
E-mail : mailto:[EMAIL PROTECTED]
Fax : +32 2 7003724
Voicemail : +32 2 7003724
Harold L Hunt II [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Jack Tanner wrote:
  vdu wrote:
 
  yes, I do ! try this : shift+click on an item in all programs
  menu. Do
  you see ? the menu stays open.
 
 
  I've been using Windows since version 3.0 and had no idea that
  existed... Actually, it doesn't work in NT 4, at least. Anyone care to
  try in 2000?
 
  Do you propose that this work on all Windows versions, or only on the
  ones that have this shift+click behavior in the Start menu?
 
  Anyhow, if this sounds like an even remotely plausible piece of
  functionality for the tray menu, it makes an ever stronger case for
  moving the program list from the tray menu to the Start menu.

 Right now we have a menu in both places, if you install the
 X-start-menu-icons package.  Why would we want to remove the
 functionality that allows a program list in the tray icon menu when the
 default behavior for that list is to be empty and to not be shown?  Only
 people that want to use it are using it.

 Harold






Re: incorrect dos version

2004-04-20 Thread Igor Pechtchanski
Wrong list.  All X-related questions should be addressed to the
cygwin-xfree list.  Redirecting.  More below.

On Tue, 20 Apr 2004, Daniel Senderowicz wrote:

 Hi,

  I'm new to this list. I read the FAQ but I couldn't find an answer
  nor a fix for my problem. I just installed the latest cygwin version
  (1.5.9) on a PC running windows NT-4.0. Everything went OK, and I
  can run programs from the console. However when I try to 'startx'
  it comes back with the message Incorrect DOS version. I was
 
 Check if you have any old DOS command line tools in your path with names
 like any cygwin executables, i.e. grep, cut, tar, gzip etc.
 
 I'm a total neophite with windows, but from looking at what I get
 by typing 'path', there is nothing that resembles a unix-like
 command. Or I should do this search in a different way?

 You were right. I just renamed a directory (util) containing
 things  like grep and tar, and the system started. However it now
 stumbles into another problem. I'm attaching the Xwin.log file
 below.
 [snip]

 Fatal server error:
 could not open default font 'fixed'
 winDeinitMultiWindowWM - Noting shutdown in progress

I suggest looking at the Cygwin-X FAQ.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


Re: telnet(ssh) to cygwin from linux

2004-04-20 Thread Brian Chase
http://eudyptula.freezope.org/ms/Cygwin-SSH-VNC-HowTo.html

I would try this entire howto, then you could do more than just a terminal.

Telnet is obsolete, best you don't use it at all.

BC

Mike Gall wrote:

What is the proper procedure to telnet into cygwin(running on Windows XP) from 
a linux machine on LAN.  I have been searching the mail lists and googling this 
but I haven't found an answer.   Both machines are located on an isolated LAN 
so telnet should be ok for testing purposes.  Any help on this we be 
appreciated.

Thanks, 
Mike

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/
 




Window focus, raise, and stacking order, and xterm maximize problems

2004-04-20 Thread kwong
Just want to mention that the problem of window focus, raise, and stacking
order, described in the message 2004-03/msg00849.htm, followed up by Earle and
Takuma, is still present in the current xwin server (6.7.0.0-4) in multiwindow
mode. Has Earle's proposed fix been incorporated in the latest xwin? If so, it
has not solved the problem. 

The second problem I believe also has been described before. When I use a
virtual desktop program such as virtuawin, if I maximize an xterm on one
desktop, switch to a second desktop, and then come back to the first, clicking
restore down does not reduce the maximized xterm. Again, I just want to mention
that the problem is still present.

Raymond Kwong 




This message was sent using IMP, the Internet Messaging Program.



ABNT2 keyboard problem with new X

2004-04-20 Thread Frédéric L. W. Meunier
Using all latest packages.

The key with /?=B0 stopped working under anything (XTerm,
xedit, rxvt for X...).

I'm attaching my XWin.log.

I've read
http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-xkb-not-working

Affected keycodes are

keycode  89 = slash question degree

Japanase is also broken for Haro -
http://sources.redhat.com/ml/cygwin-xfree/2004-04/msg00244.html

-- 
How to contact me - http://www.pervalidus.net/contact.html