Re: How to have more than one X display?

2005-09-01 Thread Joe Krahn

Soong, SylokeJ wrote:

How to indecisively start more than one X display on my XP system?


Currently I have a startxwin.bat:

SET DISPLAY=127.0.0.1:0.0
..
run XWin -screen 0 1750 1350 -whateverelse
run wmaker


as well as startxwin1.bat:
=
SET DISPLAY=127.0.0.1:0.1
..
run XWin -screen 1 1750 1350 -whateverelse
run wmaker

The problem here is that you are varying the screen number, not the 
display number. Multiple screens come from one server. Try using 
DISPLAY=127.0.0.1:1.0 for the second one.


It seems to work OK, at least if you don't try to use multi-window mode 
for both, even though several things hint that XWin code does not worry 
much about multiple servers.


Joe

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



Re: Icons

2005-09-01 Thread Joe Krahn

Joe Krahn wrote:
...
It looks like can go from a device dependent X Pixmap (DDPixmap) to a 
device dependent Win32 bitmap (DDBitmap), then use Windows functions to 
scale when needed. This can only work if pixel data formats are the same 
between Windows and Cygwin/X. Does anyone know if there is any chance of 
an exception to this?
This assumption does not completely work. Monochrome bitmaps have the 
reverse bit order in X11. I need to figure out if this is only true for 
monochome masks. I think the only other time it would matter is for a 
4-bit display, but I don't know if this would ever happen.


One thing that is a problem: If X Pixmaps and Win Bitmaps (excluding new 
RGBA icons) are stored in device-dependent format, what happens when the 
display depth gets changed while X is running?


If I start X, change the depth, then start an X app, the icon is 
mangled. So, I think we should always expand to DIB RGBA format, and 
avoid using DDBitmaps.


Can X RandR change depths? If so, is it not correctly tied in to Windows 
 Display changes?


Joe

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



RE: How to have more than one X display?

2005-09-01 Thread Soong, SylokeJ
I had tried both

SET DISPLAY=127.0.0.1:1.0

SET DISPLAY=127.0.0.1:0.1

I was guessing to recall which way it could be
to change the display number and had to decide
which to copy and paste into the email.

Either way gives me the same the same message
and similar logs.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Joe Krahn
Sent: Thu, September 01, 2005 7:57 AM
To: cygwin-xfree@cygwin.com
Subject: Re: How to have more than one X display?


The problem here is that you are varying the screen number, not the 
display number. Multiple screens come from one server. Try using 
DISPLAY=127.0.0.1:1.0 for the second one.

It seems to work OK, at least if you don't try to use multi-window mode 
for both, even though several things hint that XWin code does not worry 
much about multiple servers.

Joe

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



RE: Mouse scroll wheel acts as left arrow/right arrow.

2005-09-01 Thread Phil Betts
On Thursday, September 01 at 01:35, Brian Keener wrote:
 I have a microsoft mouse with a scroll wheel that scrolls both up and 
 down, and left/right.  The up/down scrolling action seems to act as 
 left/right arrows.
 
 In firefox, using the scroll wheel goes back/forwards a page, for an 
 example.
 
 Any idea what to do to fix this?
 
 Brian K

If this behaviour is consistent across all X applications, you could
try using xmodmap:

First, use xev to identify which button numbers are associated with the
up, down, left  right movements.  Let's say these are 4, 5, 6  7
respectively.  If you want the up button swapping with left, and
down swapping with right, you would enter:

xmodmap -e pointer = 1 2 3 6 7 4 5

you can use xmodmap -pp to verify the change.  You should see
something like this:

$ xmodmap -pp
There are 7 pointer buttons defined.

PhysicalButton
 Button  Code
1  1
2  2
3  3
4  6
5  7
6  4
7  5

I can't guarantee that this will work with XWin, but this technique
works for xorg on Linux, so it's likely to be OK.

HTH

Phil
-- 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

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



setup PATH variable by PATH=%PATH:/usr/X11R6/bin

2005-09-01 Thread PoWah Wong
I want to setup my PATH variable by following the
instructions of Chapter 4. Using Cygwin/X, section
startx at http://x.cygwin.com/docs/ug/using.html.

After doing
PATH=%PATH:/usr/X11R6/bin
my original path is lost.

I use windows XP SP2.

Log is:

[EMAIL PROTECTED] ~
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdri
ve/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/j2sdk1.4.2_07/bin:/cy
gdrive/c/apache-ant-1.6.2/bin:/cygdrive/c/Program
Files/cvsnt:/cygdrive/c/Progra
m Files/Microsoft Visual
Studio/Common/Tools/WinNT:/cygdrive/c/Program
Files/Mic
rosoft Visual
Studio/Common/MSDev98/Bin:/cygdrive/c/Program
Files/Microsoft Visu
al Studio/Common/Tools:/cygdrive/c/Program
Files/Microsoft Visual Studio/VC98/bi
n

[EMAIL PROTECTED] ~
$ PATH=%PATH:/usr/X11R6/bin

[EMAIL PROTECTED] ~
$ echo $PATH
%PATH:/usr/X11R6/bin

[EMAIL PROTECTED] ~
$






__ 
Find your next car at http://autos.yahoo.ca

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



Re: setup PATH variable by PATH=%PATH:/usr/X11R6/bin

2005-09-01 Thread Mark Paulus
The statement should read:
PATH=%PATH%:/usr/X11R6/bin

Note the trailing % on PATH.  That is a Windowism.

On Thu, 01 Sep 2005 12:33:23 -0400 (EDT), PoWah Wong wrote:

I want to setup my PATH variable by following the
instructions of Chapter 4. Using Cygwin/X, section
startx at http://x.cygwin.com/docs/ug/using.html.

After doing
PATH=%PATH:/usr/X11R6/bin
my original path is lost.

I use windows XP SP2.

Log is:

[EMAIL PROTECTED] ~
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdri
ve/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/j2sdk1.4.2_07/bin:/cy
gdrive/c/apache-ant-1.6.2/bin:/cygdrive/c/Program
Files/cvsnt:/cygdrive/c/Progra
m Files/Microsoft Visual
Studio/Common/Tools/WinNT:/cygdrive/c/Program
Files/Mic
rosoft Visual
Studio/Common/MSDev98/Bin:/cygdrive/c/Program
Files/Microsoft Visu
al Studio/Common/Tools:/cygdrive/c/Program
Files/Microsoft Visual Studio/VC98/bi
n

[EMAIL PROTECTED] ~
$ PATH=%PATH:/usr/X11R6/bin

[EMAIL PROTECTED] ~
$ echo $PATH
%PATH:/usr/X11R6/bin

[EMAIL PROTECTED] ~
$


   

   
   
__ 
Find your next car at http://autos.yahoo.ca

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





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



RE: How to have more than one X display?

2005-09-01 Thread Phil Betts
On Thursday, September 01 at 2:09, Soong, SylokeJ wrote:
 I had tried both
 
 SET DISPLAY=127.0.0.1:1.0
 
 SET DISPLAY=127.0.0.1:0.1
 
 I was guessing to recall which way it could be
 to change the display number and had to decide
 which to copy and paste into the email.
 
 Either way gives me the same the same message
 and similar logs.

I think the problem is the use of -screen 1.  I've never used the
-screen option myself, so apologies if I'm way off the mark, but I seem
to recall that it was introduced to allow a single X server to use
more than one physical display.

If this is what you are trying to achieve, you need to start a single
X server with both -screen 0 and -screen 1.

If you really do want two displays, try dropping the -screen option (or
use -screen 0 for both), and use the :1.0 form for the second DISPLAY.

HTH

Phil
-- 

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

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



RE: setup PATH variable by PATH=%PATH:/usr/X11R6/bin

2005-09-01 Thread Reid Thompson
Mark Paulus wrote:
 The statement should read:
 PATH=%PATH%:/usr/X11R6/bin
 
 Note the trailing % on PATH.  That is a Windowism.
 
 On Thu, 01 Sep 2005 12:33:23 -0400 (EDT), PoWah Wong wrote:
 
 I want to setup my PATH variable by following the
 instructions of Chapter 4. Using Cygwin/X, section
 startx at http://x.cygwin.com/docs/ug/using.html.
 
 After doing
 PATH=%PATH:/usr/X11R6/bin
 my original path is lost.
 

Actually, i think that if you're in a cygwin bash terminal you have to
use $PATH rather than %PATH%.

reid

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



RE: setup PATH variable by PATH=%PATH:/usr/X11R6/bin

2005-09-01 Thread Reid Thompson
Mark Paulus wrote:
 The statement should read:
 PATH=%PATH%:/usr/X11R6/bin
 
 Note the trailing % on PATH.  That is a Windowism.

yep -- that's a typo -- 
  $ PATH=%PATH:/usr/X11R6/bin 
should be 
  $ PATH=$PATH:/usr/X11R6/bin

reid

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



RE: How to have more than one X display?

2005-09-01 Thread Soong, SylokeJ
I simply could not decide if the jabberwocky
is called display or screen.
As the tumtum it leans on called $DISPLAY,
I wish to set to :0.0 and :0.1
as I had in Reflection/X.

Right, now that I have to the terminology
straightened (to roam cygwin wonderland),
Reflection/X allows me to start a display server
with just screen :0.0 with a premeditated intent
of starting screen :0.1 later or not at all.

Reflection would give me two XP windows,
one for each independent :jabberwocky.screen.

Question I should have asked in light of my enlightenment,
How to have more than one screen on an X display server?
Adding to that question,
How to allow willy-nilly starting of another screen later
rather than all at once?

It's all the fault of Reflection allowing me the convenience
that I wanted the same in Cygwin.


This is what my startxwin1.bat have to do to get two screens.
I have to repeat options for each screen.
If I closed one screen both screens die. Unlike Reflection.

Whom should I ask to modify XWin.exe to allow appending
screens after the X server has started?
===
.
run XWin -screen 0 1750 1300  -multiplemonitors -emulate3buttons -scrollbars
-clipboard -silent-dup-error -screen 1 1750 1300 -multiplemonitors
-emulate3buttons -scrollbars  -clipboard -silent-dup-error

SET DISPLAY=127.0.0.1:0.0
run wmaker
run xterm -sb -e /usr/bin/bash -l

SET DISPLAY=127.0.0.1:0.1
run wmaker
run xterm -sb -e /usr/bin/bash -l



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Phil Betts
Sent: Thu, September 01, 2005 12:45 PM
To: cygwin-xfree@cygwin.com
Subject: RE: How to have more than one X display?


On Thursday, September 01 at 2:09, Soong, SylokeJ wrote:
 I had tried both
 
 SET DISPLAY=127.0.0.1:1.0
 
 SET DISPLAY=127.0.0.1:0.1
 
 I was guessing to recall which way it could be
 to change the display number and had to decide
 which to copy and paste into the email.
 
 Either way gives me the same the same message
 and similar logs.

I think the problem is the use of -screen 1.  I've never used the
-screen option myself, so apologies if I'm way off the mark, but I seem
to recall that it was introduced to allow a single X server to use
more than one physical display.

If this is what you are trying to achieve, you need to start a single
X server with both -screen 0 and -screen 1.

If you really do want two displays, try dropping the -screen option (or
use -screen 0 for both), and use the :1.0 form for the second DISPLAY.

HTH

Phil
-- 

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



problem

2005-09-01 Thread RICHARD D HILDNER
I have installed cygwin and everything seems to run smoothly except I 
can't get any display to work.  If I execute XWin then it opens up a 
grey window with an X at the top followed by Cygwin/X-0:0 and 
that's it.  There's no menu options or anything.  If i do XWin -query 
remote_host then the same thing comes up with Cygwin/X-
remote_host.  
If I connect with ssh -Y remote_host it connects me but if i try to 
execute something that requires a display...such as xeyes...Then it 
says connect 127.0.0.1 port 6000: Connection refused/ Xconnection to 
localhost:12.0 broken (explicit kill or server shutdown)

So i don't know what I'm doing wrong.

Thanks a lot,
-Richard Hildner 

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



Re: Cygwin/X and 64-bit Windows

2005-09-01 Thread Brian Dessent
Nathan Heck wrote:

 Is Cygwin/X compatible with 64-bit Windows? I checked the website and help
 documents but this does not appear to be addressed anywhere.
 
 I have installed Cygwin/X in several of our labs each time configuring it the
 same way and it works beautifully in our labs with 32-bit windows but not a
 single machine using 64-bit windows will work. I have attached the Xwin.log
 in hopes that you may be able to make more sense of the errors then I was
 able to.

I don't know what the official status of 64 bit support is.  The second
paragraph on the main cygwin.com home page says that only 32 bit
versions of windows are supported.  However, you may find that it does
in fact work in 64 bit windows as there have been some recent fixes in
that area.  You will, however, have to use a snapshot since some of
these fixes have been done recently.

Brian

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



RE: problem

2005-09-01 Thread Soong, SylokeJ
When I first installed Cygwin/X and tried,
I ran into the same puzzlement, if not panic.

All the xterms and xclock I started were heaped
into the same corner, intransigently unmoveable.
(The sun shall not strike thee, nor the moon by
night and your feet will not be moved, as though).

Then I recalled, hmm 
There is an X Display Server and then
there is an X Display Manager.
I think. I'm sure I have not confused the
terminology.

The default as cygwin was installed only started
the X Display server.
An X Display mgr would be prudent to have if I
wanted to have a Motif look or even Win/95 look
and to manage how the window or menus behave.
I guess an XDM would also help with coordinate
placement of apps like xclock and xterms.

So I looked into the startxwin files and was as
assured to find twm (which I guessed correctly is
an X display mgr) commented out.
 
I uncommented it and when XWin restarted
my xterms and xclock were moveable.

But I didn't like twm because the extremity of my
X habits tends to pile up lots of windows
and would have me a hard time searching for them
without a desktop window locater. Which led me
to install wmaker.

Hey! Why couldn't I throw xterms from my sun box to
local cygwin? My $DISPLAY on sunside was correct.
With all the authentication failures and whatnots.

Oops, I had forgotten to run
xhost +
on the local cygwin xterm.
(I actually made the mistake of attempting xhost +
on an XP cmd window prior to that.)
xhost + or
xhost + some-network-identifiable-hostname.

The installation was rather simple that
everyone around my periphery of physical influence
should be able use cygwin to replace their branded
X display s/w. 

Now I am beginning to wonder, what if I just started
the X display server on local cygwin and then attempt
to throw an X display mgr to it from my sun box?
Or get a little more screwy,
start x server on my laptop cygwin,
throw wmaker from my win2k box to my laptop,
login to sun box and throw xterms to my laptop.

hmm looking on the sunnyside of things,
but I can't wait for the snow to fall.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of RICHARD D HILDNER
Sent: Thu, September 01, 2005 4:55 PM
To: cygwin-xfree@cygwin.com
Subject: problem


I have installed cygwin and everything seems to run smoothly except I 
can't get any display to work.  If I execute XWin then it opens up a 
grey window with an X at the top followed by Cygwin/X-0:0 and 
that's it.  There's no menu options or anything.  If i do XWin -query 
remote_host then the same thing comes up with Cygwin/X-
remote_host.  
If I connect with ssh -Y remote_host it connects me but if i try to 
execute something that requires a display...such as xeyes...Then it 
says connect 127.0.0.1 port 6000: Connection refused/ Xconnection to 
localhost:12.0 broken (explicit kill or server shutdown)

So i don't know what I'm doing wrong.

Thanks a lot,
-Richard Hildner 

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



Re: How to have more than one X display?

2005-09-01 Thread Joe Krahn

Joe Krahn wrote:

Soong, SylokeJ wrote:


How to indecisively start more than one X display on my XP system?


Currently I have a startxwin.bat:

SET DISPLAY=127.0.0.1:0.0
..
run XWin -screen 0 1750 1350 -whateverelse
run wmaker


as well as startxwin1.bat:
=
SET DISPLAY=127.0.0.1:0.1
..
run XWin -screen 1 1750 1350 -whateverelse
run wmaker

The problem here is that you are varying the screen number, not the 
display number. Multiple screens come from one server. Try using 
DISPLAY=127.0.0.1:1.0 for the second one.


It seems to work OK, at least if you don't try to use multi-window mode 
for both, even though several things hint that XWin code does not worry 
much about multiple servers.



Oh...
The DISPLAY variable has no effect on XWin. Try the following:

  XWin :0.0
and
  XWin :1.0

I can run several of these. But, I noticed that MultiWindow mode is 
broken for anything but display :0.


Joe

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