Re: fvwm ignores clickToFocus for function keys

2010-10-26 Thread Charles Smith
 When typing in an in-focus xterm, but the mouse cursor is elsewhere, if I hit 
 a function key, the programmed action does not occur.  Instead, something 
 else occurs, which I cannot identify (involving insertion of characters 
 and/or other actions).  When the mouse is positioned directly inside the 
 window, the programmed action occurs normally.
 
 This is different than the operation of fvwm under linux.  In that case, an 
 in-focus xterm takes function key input as well as other key input, 
 regardless where the mouse cursor is.
 
 Thus, if I have programmed the xterm F12 key to send:
 
   21 | less nl
 
 it is only received by bash if the mouse is positioned inside the window.  
 This is a problem if I entered a command (other key input obeys the 
 clickToFocus directive) and then hit F12, and some unidentifiable garbage 
 gets inserted.
 
 
 I can't verify that this is a cygwin problem, but hours of googling haven't 
 revealed any mention of the problem at all, an any platform.
 
 Interestingly, I just noticed that the arrow keys seem to work normally, 
 regardless of the position of the mouse.  It's only the function keys that 
 behave poorly.
 
 
 Any help will be appreciated.
 


I keep discovering new things about this problem.  I'd said previously that 
under linux this did not happen.  Not quite true.

It turns out that it happens if my mouse is positioned over xterm's scroll bars!

If the mouse is over the in-focus window, or any other window, or the root, the 
function keys work properly.  But if the mouse is positioned over the scroll 
bars, it sends garbage!

Furthermore, I just discovered something even more interesting - if the mouse 
is positioned over the title bar, the cut buffer gets modified ... uh oh, this 
is starting to sound like a configuration issue... but that was all on linux 
(suse 10.3).

On cygwin it's wrong whenever the mouse is not over the in-focus window.



  

--
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: fvwm ignores clickToFocus for function keys

2010-09-27 Thread Jon TURNEY

On 26/09/2010 12:28, Charles Smith wrote:

This conversation was transferred from the cygwin main list because Larry Hall 
said it was xfree-specific...

From: Morgan Gangwere0 dot fractalus at gmail dot com

Sounds like something is trashing a buffer... however I'm not entirely
sure.

...

Sounds oddly configuration related... then again, i don't use fvwm on
windows.


My suspicion is that it has to do with the cut-buffers/clip-board-mechanism, 
somehow.

I'd said previously that what gets sent (when a function key is pressed but the 
mouse cursor isn't over the in-focus window) is the unmapped version of the 
function key.  It might also be some earlier contents of the cut-buffer, or 
something like that.  I'm still trying to track it down.

Being able to cut-and-paste between windows and cygwin is important, and I'm 
glad that this evolving capability is so far along... but is it possible to 
disable it, at least for debugging purposes?


'man XWin' [1] documents the -noclipboard option.

[1] http://x.cygwin.com/docs/man1/XWin.1.html

--
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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: fvwm ignores clickToFocus for function keys

2010-09-26 Thread Charles Smith
This conversation was transferred from the cygwin main list because Larry Hall 
said it was xfree-specific...

From: Morgan Gangwere 0 dot fractalus at gmail dot com
 Sounds like something is trashing a buffer... however I'm not entirely
 sure.
...
 Sounds oddly configuration related... then again, i don't use fvwm on
 windows.

My suspicion is that it has to do with the cut-buffers/clip-board-mechanism, 
somehow.

I'd said previously that what gets sent (when a function key is pressed but the 
mouse cursor isn't over the in-focus window) is the unmapped version of the 
function key.  It might also be some earlier contents of the cut-buffer, or 
something like that.  I'm still trying to track it down.

Being able to cut-and-paste between windows and cygwin is important, and I'm 
glad that this evolving capability is so far along... but is it possible to 
disable it, at least for debugging purposes?



  

--
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: fvwm ignores clickToFocus for function keys

2010-09-21 Thread Charles Smith
 This is different than the operation of fvwm under linux.  In that
 case, an in-focus xterm takes function key input as well as other key
 input, regardless where the mouse cursor is.

 a) Are you running fvwm under a rootless X11?
 b) are your configs the same?

Ah, you mean on cygwin and on linux?  Yes, that's the beauty of the thing.

As far as a rootless X11 goes ... I don't know how to configure that.



  

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



Re: fvwm ignores clickToFocus for function keys

2010-09-21 Thread Larry Hall (Cygwin)

On 9/21/2010 12:14 PM, Charles Smith wrote:

This is different than the operation of fvwm under linux.  In that
case, an in-focus xterm takes function key input as well as other key
input, regardless where the mouse cursor is.


a) Are you running fvwm under a rootless X11?
b) are your configs the same?


Ah, you mean on cygwin and on linux?  Yes, that's the beauty of the thing.

As far as a rootless X11 goes ... I don't know how to configure that.


Cygwin-X User's Guide to the rescue! :-)

http://x.cygwin.com/docs/ug/configure.html

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.

Q: Are you sure?

A: Because it reverses the logical flow of conversation.

Q: Why is top posting annoying in email?


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



Re: fvwm ignores clickToFocus for function keys

2010-09-21 Thread Charles Smith
 Cygwin-X User's Guide to the rescue! :-)

Okay, I'll give that a try ... except ... can I run FVWM rootless?  Where will 
it go?  Doesn't rootless mode mean that the Windows window manager is used?

BTW, I have identified what gets sent when the cursor is NOT inside the bounds 
of the window: it's the *unmapped* version of the function key.

Okay, here's the information I forgot to supply (or only hinted at): I use the 
xterm.VT100.Translations resource (in my .Xdefaults file) to map the function 
keys:

xterm*VT100.Translations: #override \n\
Key Print: string(0x7f) \n\
Key Pause: insert-selection(PRIMARY, CUT_BUFFER0) \n\
Ctrl Key Prior: scroll-back(1,halfpage) \n\
Ctrl Key Next: scroll-forw(1,halfpage) \n\
\
Shift Key Up: string(0x1b) string(OAA) \n\
Shift Key Down: string(0x1b) string(OBB) \n\
\
Ctrl Key 3: string(0x1b) string() \n\
Ctrl Key 4: string(0x1b) string(_) \n\
\
Shift Key F7: string(/media/) \n\
Shift Key F8: string([|]) \n\
Shift Key F9: string(0x1b) string([35~) \n\
Shift Key F10: string(0x1b) string([36~) \n\
Shift Key F11: string( 21 | ) \n\
Shift Key F12: string( 21 | tee -a make.$md\n) \n\
\
Alt Key F2: keymap(vt100)\n\
Alt Key F1: keymap(None)\n\
\
Key F1: string(0x1b) string(_) \n\
Key F4: string($ARCH/) \n\
Key F5: string(../Include/%:t:r.hpp) \n\
Key F6: string(../Source/%:t:r.cpp) \n\
Key F7: string(-next) \n\
Key F8: string() \n\
Key F9: insert-selection(PRIMARY, CUT_BUFFER0) \n\
Key F10: string( 21 | ) \n\
Key F11: string( 21 | head\n) \n\
Key F12: string( 21 | less\n)

So, for example, if I hit F12 when the mouse cursor is outside the bounds of 
the window, ^[[24~ gets inserted onto my command line.



  

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



Re: fvwm ignores clickToFocus for function keys

2010-09-21 Thread Larry Hall (Cygwin)

On 9/21/2010 3:39 PM, Charles Smith wrote:

Cygwin-X User's Guide to the rescue!:-)

Okay, I'll give that a try ... except ... can I run FVWM rootless?  Where
will it go?  Doesn't rootless mode mean that the Windows window manager is
used?


No.  From the link to the documentation:

Note: This is typically used to work with local or remote X
applications, integrated into your native Windows desktop, but
controlled using the X window manager of your choice.

You're thinking of -multiwindow.

This topic really is X-specific.  It's more appropriate to use the
cygwin-xfree list, which handles Cygwin X issues and questions.  Please
follow-up there with any further replies.

Thanks,

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.

Q: Are you sure?

A: Because it reverses the logical flow of conversation.

Q: Why is top posting annoying in email?


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



Re: fvwm ignores clickToFocus for function keys

2010-09-20 Thread Charles Smith
 a) Are you running fvwm under a rootless X11?

No, but I will try that at work tomorrow and report back

 b) are your configs the same?

The same as what?  Sorry, I don't understand the question.




  

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



Re: fvwm ignores clickToFocus for function keys

2010-09-19 Thread Morgan Gangwere
On Sun, 19 Sep 2010 13:03:19 -0700 (PDT)
Charles Smith cts.priv...@yahoo.com wrote:

 When typing in an in-focus xterm, but the mouse cursor is elsewhere,
 if I hit a function key, the programmed action does not occur.

 Instead, something else occurs, which I cannot identify (involving
 insertion of characters and/or other actions).  When the mouse is
 positioned directly inside the window, the programmed action occurs
 normally.

 This is different than the operation of fvwm under linux.  In that
 case, an in-focus xterm takes function key input as well as other key
 input, regardless where the mouse cursor is.

a) Are you running fvwm under a rootless X11?
b) are your configs the same?

 Thus, if I have programmed the xterm F12 key to send:

   21 | less nl

 it is only received by bash if the mouse is positioned inside the
 window.  This is a problem if I entered a command (other key input
 obeys the clickToFocus directive) and then hit F12, and some
 unidentifiable garbage gets inserted.

Sounds like something is trashing a buffer... however I'm not entirely
sure.

 
 I can't verify that this is a cygwin problem, but hours of googling
 haven't revealed any mention of the problem at all, an any platform.

See the 2 questions above...

 Interestingly, I just noticed that the arrow keys seem to work
 normally, regardless of the position of the mouse.  It's only the
 function keys that behave poorly.

Sounds oddly configuration related... then again, i don't use fvwm on
windows.

--~--
Morgan Gangwere


signature.asc
Description: PGP signature