Re: xwinclip re selection polling

2002-08-28 Thread Chris Twiner

>I think the goal in the not-too-far-away-future is to have xwinclip 
> >integrated directly inside the XWin app. This would save you the >trouble 
>to use SetWindowsHookEx, which IIRC is a big piece of crap. >Also, this 
>would save you the trouble of killing xwinclip while XWin >is still 
>running.

I read that the plan was to integrate it on one of the posts (and the todo 
list) but the problem would still remain (keeping ownership).  You're right 
though SetWindowsHookEx is awful.  It's not too bad for a process only hook 
but a global is horrible.

I think you're right though, wasting more time on the closing down bit would 
be foolish.  When integrated only the setselectionowner's would need to be 
removed and the two event's code added. Much cleaner but would get rid of 
the ownership thing.

Thanks for the feedback.  Nobody replied to the other post so I wondered 
what interest level there was.

Chris

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




Re: xwinclip re selection polling

2002-08-28 Thread Jehan

I think the goal in the not-too-far-away-future is to have xwinclip 
integrated directly inside the XWin app. This would save you the trouble 
to use SetWindowsHookEx, which IIRC is a big piece of crap. Also, this 
would save you the trouble of killing xwinclip while XWin is still running.

Jehan

Chris Twiner wrote:
> Hi All,
> 
> I posted last week that I had a possible solution to the xwinclip 
> selection behaviour.  I didn't get any feedback so I endeavoured to do 
> it anyway.  So this ones a bit long but it's an explanation of how I've 
> got it working ..
> 
> Basic premise :
> 
> Use a seperate dll that runs a system wide Windoze hook to catch all 
> activate messages.  2 events are of interest in the hook, when 
> Cygwin/XFree86 is activated and when it is deactivated.  When an event 
> is detected the hook then sends a broadcast registered message to all 
> top level windows.
> 
> The top level Windoze window for xwinclip is run in a seperate thread 
> and as such always receives the messages.  Upon receipt of the 
> activation messages flags are set up that indicate that either 
> xtowindows be called or windowstox.  These functions copy the data in 
> the respective directions.
> 
> The flags have to be used so the main thread (the owner of pDisplay) is 
> the one that calls the functions.  They in turn either 
> XSetSelectionOwner (windowstox) or they XConvertSelection (xtowindows) 
> to set the messages running.
> 
> Major changes are that the select in xwinclip.c has a time limit applied 
> and that the XSetSelectionOwner in xevents.c and XSetSelectionOwner in 
> xwinclip.c are removed.
> 
> This means that all selection operations behave as expected in XWin with 
> xwinclip running.
> 
> However I have some limitations:
> 
> closing xwinclip:
>   closing XWin closes xwinclip but doesn't go through WM_DESTROY on the 
> x window, just
> XIO:  fatal IO error 113 (Connection aborted) on X server "127.0.0.1:0.0"
>  after 48 requests (47 known processed) with 0 events remaining.
>   I made a script to close xwinclip via sending an X message but it 
> results in crashing XWin as well.
> 
> the select statement timeout:
>   In order to get the polling on the notification flags (from the 
> windows thread) the timer is set to 1 sec (or some other time).  Is 
> there a way to make the flags act as file descriptors for the select 
> statement?
> 
> Any help on the problems would be appreciated.
> 
> The code is still (cough cough) a little rough n ready so I will release 
> it when appropriate.  Is putting a zip attachment on this mailing list 
> appropriate?
> 
> I have only been working on this for 3 days and it's my first attempt at 
> X antics so if these are FAQ style items I appologise (I've looked just 
> can't find them).
> 
> Regards,
> 
> Chris Twiner
> 
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 






xwinclip re selection polling

2002-08-28 Thread Chris Twiner

Hi All,

I posted last week that I had a possible solution to the xwinclip selection 
behaviour.  I didn't get any feedback so I endeavoured to do it anyway.  So 
this ones a bit long but it's an explanation of how I've got it working ..

Basic premise :

Use a seperate dll that runs a system wide Windoze hook to catch all 
activate messages.  2 events are of interest in the hook, when 
Cygwin/XFree86 is activated and when it is deactivated.  When an event is 
detected the hook then sends a broadcast registered message to all top level 
windows.

The top level Windoze window for xwinclip is run in a seperate thread and as 
such always receives the messages.  Upon receipt of the activation messages 
flags are set up that indicate that either xtowindows be called or 
windowstox.  These functions copy the data in the respective directions.

The flags have to be used so the main thread (the owner of pDisplay) is the 
one that calls the functions.  They in turn either XSetSelectionOwner 
(windowstox) or they XConvertSelection (xtowindows) to set the messages 
running.

Major changes are that the select in xwinclip.c has a time limit applied and 
that the XSetSelectionOwner in xevents.c and XSetSelectionOwner in 
xwinclip.c are removed.

This means that all selection operations behave as expected in XWin with 
xwinclip running.

However I have some limitations:

closing xwinclip:
   closing XWin closes xwinclip but doesn't go through WM_DESTROY on the x 
window, just
XIO:  fatal IO error 113 (Connection aborted) on X server "127.0.0.1:0.0"
  after 48 requests (47 known processed) with 0 events remaining.
   I made a script to close xwinclip via sending an X message but it results 
in crashing XWin as well.

the select statement timeout:
   In order to get the polling on the notification flags (from the windows 
thread) the timer is set to 1 sec (or some other time).  Is there a way to 
make the flags act as file descriptors for the select statement?

Any help on the problems would be appreciated.

The code is still (cough cough) a little rough n ready so I will release it 
when appropriate.  Is putting a zip attachment on this mailing list 
appropriate?

I have only been working on this for 3 days and it's my first attempt at X 
antics so if these are FAQ style items I appologise (I've looked just can't 
find them).

Regards,

Chris Twiner

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com




RE: Config question/prob with HP Openview

2002-08-28 Thread Traxler, Gene W

xterm displays a VT Fonts menu when I hold down CTRL and right click.  So
far, the only program that I am having trouble with is HP OpenView.  The
rest of the CDE 1.3 environment appears to work normally although I haven't
tested a lot of other programs (Netscape, various CDE desktop functions,
etc).  I found a note where someone running XFree86 under Linux was able to
get right-clicking in Openview to work by removing the ZAxisMapping line
from his XF86Config InputDevice section but Cygwin/XFree86 doesn't use
XF86Config.  Is there something equivalent to the change under Linux that I
can do in Cygwin/XFree86?

Everything that I am trying to do works fine under Hummingbird's Exceed
although the stuff that works seems to work better under Cygwin.  I am using
Exceed at present but want to change to Cygwin.  There is nothing peculiar
in the Exceed configuration that I have found.

-Original Message-
From: Alexander Gottwald

> As you can see the server sends the button press messages. So the programs
> an the remote machine must have some wierd config. 
>
> Which programs do not react on the button press? Does xterm display 
> a menu when holding CTRL and pressing the button?




RE: Config question/prob with HP Openview

2002-08-28 Thread Alexander Gottwald

On Wed, 28 Aug 2002, Traxler, Gene W wrote:

> Here are the two events from pressing the right mouse button.  I assumed
> that you didn't want all of the motion and other events.
> 
> ButtonPress event, serial 17, synthetic NO, window 0x41,
> root 0x36, subw 0x0, time 10973308, (27,95), root:(581,377),
> state 0x0, button 3, same_screen YES
> 
> ButtonRelease event, serial 17, synthetic NO, window 0x41,
> root 0x36, subw 0x0, time 10973529, (27,95), root:(581,377),
> state 0x400, button 3, same_screen YES


As you can see the server sends the button press messages. So the programs
an the remote machine must have some wierd config. 

Which programs do not react on the button press? Does xterm display 
a menu when holding CTRL and pressing the button?

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




RE: Config question/prob with HP Openview

2002-08-28 Thread Traxler, Gene W

Here are the two events from pressing the right mouse button.  I assumed
that you didn't want all of the motion and other events.

ButtonPress event, serial 17, synthetic NO, window 0x41,
root 0x36, subw 0x0, time 10973308, (27,95), root:(581,377),
state 0x0, button 3, same_screen YES

ButtonRelease event, serial 17, synthetic NO, window 0x41,
root 0x36, subw 0x0, time 10973529, (27,95), root:(581,377),
state 0x400, button 3, same_screen YES

Thank you for your assistance.
Gene

-Original Message-
From: Alexander Gottwald
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 1:30 PM
To: Traxler, Gene W
Cc: '[EMAIL PROTECTED]'
Subject: Re: Config question/prob with HP Openview


On Wed, 28 Aug 2002, Traxler, Gene W wrote:

> I have been trying to use Cygwin/XFree86 to run HP Openview.  I start XWin
> with the -query to log into the Solaris system that OV runs on and
> everything seems to run fine, better than with the release of
Hummingbird's
> Exceed that I have.  However, the right mouse button doesn't work in any
> OpenView window although it works on the rest of the CDE desktop.  

Please try xev. What does xev report if you press the button?

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



fonts?

2002-08-28 Thread Roberto Pavan

Hello,
 
I've had some trouble getting XFree86 4.2 to run on my cygwin
installation. I installed the system on my Win2k machine using the
latest setup.exe from cygwin.org.
 
I'm getting a Cannot Open Display: 127.0.0.1:0.0   error when I try to
run startxwin.sh
 
A look at the logs shows me a series of errors like this one: Could not
init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from
list!
 
I thought this might have been an issue regarding the text mode used
during install as outlined in s. 6.6 of the FAQ, so I reinstalled the
system using setup.exe.  Unfortunately, this doesn't seem to be the
case, as in fact, no fonts were installed. That is, the directory
/usr/X11R6/lib/X11/fonts/ doesn't exist.
 
I haven't found anything in the FAQ regarding this. Can anyone help me
to remedy the situation?

--
Regards,
Roberto Pavan, [EMAIL PROTECTED]
Ph. (604) 222-1047 x6370 Fx. (604) 221-0436
http://www.triumf.ca/ 




Re: Config question/prob with HP Openview

2002-08-28 Thread Alexander Gottwald

On Wed, 28 Aug 2002, Traxler, Gene W wrote:

> I have been trying to use Cygwin/XFree86 to run HP Openview.  I start XWin
> with the -query to log into the Solaris system that OV runs on and
> everything seems to run fine, better than with the release of Hummingbird's
> Exceed that I have.  However, the right mouse button doesn't work in any
> OpenView window although it works on the rest of the CDE desktop.  

Please try xev. What does xev report if you press the button?

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




Config question/prob with HP Openview

2002-08-28 Thread Traxler, Gene W

I have been trying to use Cygwin/XFree86 to run HP Openview.  I start XWin
with the -query to log into the Solaris system that OV runs on and
everything seems to run fine, better than with the release of Hummingbird's
Exceed that I have.  However, the right mouse button doesn't work in any
OpenView window although it works on the rest of the CDE desktop.  

Searching on Google, I found an item labeled Pete's Notes that describes the
same problem using XFree86 under Linux.  This person was able to get the
right button to work by removing the ZAxisMapping line from the InputDevice
section of his XF86Config.  The Cygwin/XFree86 FAQ says the it does not use
XF86Config and the User's Guide does not list any parameter that I recognize
as relating to this problem.  I tried starting Cygwin/XFree86 with and
without 3 button emulation but no right button either way.  Is there an
undocumented parameter or config file that will help with this or am I out
of luck for now with XFree86?  I looked through the files in /etc/X11 and
didn't see anything that looked promising.

Please reply to my email address ([EMAIL PROTECTED]) as I am
not subscribed to this list (lack of time, not lack of interest  :-(  )



Partial solution for nonUs keyboards with XDMCP to AIX, was: Using Cygwinto connect an AIX box. Questions for german, italian, french, spanish[...] users

2002-08-28 Thread Pavel . Rybnicek


Eh, very funny :-I

OK, I looked into that problem in last days and I believe I found partial
solution. The problem is that AIX uses modifier Mod2 for AltGT (linux uses
Mod3, I think - but not sure).
 So this works for my Czech keyboard:

I changed following files:
/etc/X11/xkb/symbols/us
 in section generic101 i removed following lines:
modifier_map Mod2   { Num_Lock };
modifier_map Mod5   { Scroll_Lock };
the first disables NumLock ability to lock AltGr. The second was removed
when during experiments - may be it's not necessary.

/etc/X11/xkb/symbols/cz
 in section basic I changed
modifier_map Mod2   {  };

(I think originally it was Mod3)
this enables AltGr to behave correctly.

Then I generated new /tmp/cz.xkm file using xkbcomp and add it tu command
line parameters.

But I have still problems with NumLock and numeric keypad - during login,
it doesn't work (behaves odd, but switchnig NumLock causes little changes),
when logged on, it is hard locked to produce numbers.

I tried to set NumLock to Mod5 (It looks to be correct for AIX), but it
didn't work.

One more thing - probably to Harold - Caps Locks works correctly, but
doesn't change state of the Caps Lock LED. Is this because change of LED
state is not implemented in Cygwin, or is it bug, or what? (Note I'm not
requesting fix for that, I'm just curious :-)

I don't really understand xkb principles, so I don't know if everything I
wrote above is correct. But it works...

If  you have any comments or ideas of solutions, please send it.

Pavel



   
   
Nicholas Wourms
   
<[EMAIL PROTECTED]>To: [EMAIL PROTECTED] 
   
Sent by:   cc: 
   
cygwin-xfree-owner@Subject: Re: Using Cygwin to 
connect an AIX box. Questions for german, italian, french,
cygwin.com spanish [...] users 
   
   
   
   
   
27.08.2002 21:37   
   
Please respond to  
   
cygwin-xfree   
   
   
   
   
   





> I know that Alt Gr problems were under the spotligth in the past
> and there
> is
> probably no solution since it seems to be an aix related problem,
> but I
> wanted
> to ask people using non-qwerty keyboards what solution do they
> adopted (if
> the
> did'nt give up) ?

Use English

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com






Q: indirect and from options?

2002-08-28 Thread Heiko Nardmann

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I do not find the "indirect" and "from" options in the users guide 
documentation. Are they deprecated or just missing there?

- -- 
Heiko Nardmann (Dipl.-Ing.), [EMAIL PROTECTED], Software Development
secunet Security Networks AG - Sicherheit in Netzwerken (www.secunet.de),
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax  : +49 271 48950-50
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iEYEARECAAYFAj1sfJEACgkQpm53PRScYyjJwQCgkP92NvPn9pM93Rqns0NFcteW
kYMAn0yjxJyMiyfvacGO/8LlJ/H0DLrS
=kW5u
-END PGP SIGNATURE-




Re: client runtime packaging request

2002-08-28 Thread Alexander Gottwald

On Tue, 27 Aug 2002, Harold L Hunt II wrote:

> Joe,
> 
> I agree, it would be nice if Cygwin/XFree86 packages were able to allow 
> the user to pick-and-choose elements at a more fine-grained level.

The current scheme is good, but has one bug.
The shared libraries are not in lib, but in bin. I'll take a look at the 
scripts and build a patch which will add X11/lib and X11/bin/lib*dll to
XFree86-lib and exclude X11/bin/lib*dll from XFree86-bin. Any new package 
will then have the dlls in XFree86-lib

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