public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* WinCompose vs. Cygwin/X
@ 2017-01-10 13:29 Michael Schaap
  2017-01-11  8:51 ` Csaba Raduly
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Schaap @ 2017-01-10 13:29 UTC (permalink / raw)
  To: cygwin

I recently discovered WinCompose 
<https://github.com/samhocevar/wincompose>, a Windows port of XCompose, 
and fell in love with it.

Unfortunately, it doesn't play nice with Cygwin/X, it seems. WinCompose 
eats the key sequences, and neither the original keys nor the intended 
character(s) ever reach X.
Of course, Cygwin/X has XCompose.  But because of the above, you can't 
use the same compose key in WinCompose and XCompose.  So I keep using 
the wrong compose key.  (gvim is the worst, since I use both the Windows 
and X versions.)

Does any of you have experience with this and know a better way to deal 
with this?
Potential solutions might be to tell Cygwin/X to use Windows keyboard 
handling instead of its own keyboard drivers (but I don't think that's 
possible), or to tell WinCompose to disable itself in windows owned by 
the X server (and that doesn't seem possible either).
(I know mintty has its own compose functionality now, but that doesn't 
help.  I spend a lot of my time in terminal windows, but not all. :)

Thanks in advance,

– Michael

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: WinCompose vs. Cygwin/X
  2017-01-10 13:29 WinCompose vs. Cygwin/X Michael Schaap
@ 2017-01-11  8:51 ` Csaba Raduly
  2017-01-11 22:16   ` Michael Schaap
  0 siblings, 1 reply; 5+ messages in thread
From: Csaba Raduly @ 2017-01-11  8:51 UTC (permalink / raw)
  To: cygwin list

Hi Michael,

On Tue, Jan 10, 2017 at 2:28 PM, Michael Schaap  wrote:
> I recently discovered WinCompose <https://github.com/samhocevar/wincompose>,
> a Windows port of XCompose, and fell in love with it.
>
> Unfortunately, it doesn't play nice with Cygwin/X, it seems.
(snip various scenarios and potential solutions)

Have you tried opening an issue in the WinCompose issue tracker? They
might be able to code a workaround.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: WinCompose vs. Cygwin/X
  2017-01-11  8:51 ` Csaba Raduly
@ 2017-01-11 22:16   ` Michael Schaap
  2017-01-16 14:49     ` Jon Turney
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Schaap @ 2017-01-11 22:16 UTC (permalink / raw)
  To: cygwin

On 11-Jan-17 9:51, Csaba Raduly wrote:
> Hi Michael,
>
> On Tue, Jan 10, 2017 at 2:28 PM, Michael Schaap  wrote:
>> I recently discovered WinCompose <https://github.com/samhocevar/wincompose>,
>> a Windows port of XCompose, and fell in love with it.
>>
>> Unfortunately, it doesn't play nice with Cygwin/X, it seems.
> (snip various scenarios and potential solutions)
>
> Have you tried opening an issue in the WinCompose issue tracker? They
> might be able to code a workaround.
Somebody beat me to it.  Unfortunately with not much result.
https://github.com/samhocevar/wincompose/issues/132

  - Michael

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: WinCompose vs. Cygwin/X
  2017-01-11 22:16   ` Michael Schaap
@ 2017-01-16 14:49     ` Jon Turney
  2017-06-24 22:36       ` Michael Schaap (lists)
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Turney @ 2017-01-16 14:49 UTC (permalink / raw)
  To: cygwin; +Cc: Michael Schaap

On 11/01/2017 22:16, Michael Schaap wrote:
> On 11-Jan-17 9:51, Csaba Raduly wrote:
>> Hi Michael,
>>
>> On Tue, Jan 10, 2017 at 2:28 PM, Michael Schaap  wrote:
>>> I recently discovered WinCompose
>>> <https://github.com/samhocevar/wincompose>,
>>> a Windows port of XCompose, and fell in love with it.
>>>
>>> Unfortunately, it doesn't play nice with Cygwin/X, it seems.
>> (snip various scenarios and potential solutions)

Thanks for reporting this issue.

Unfortunately, this is a complex problem to solve.

At the protocol level, X clients really are being told about 
keypress/release events (i.e. Windows WM_KEYDOWN/WM_KEYUP messages map 
in some way to X11 KeyPress/KeyRelease events)

Now, there is a possible mechanism to tell X clients about characters, 
like the WM_CHAR messages being sent by WinCompose, which is XIM, and 
there was some long-ago work in that area [1], but it's not included in 
current X servers.

>> Have you tried opening an issue in the WinCompose issue tracker? They
>> might be able to code a workaround.
> Somebody beat me to it.  Unfortunately with not much result.
> https://github.com/samhocevar/wincompose/issues/132

In the short term, some sort of feature in WinCompose where it turns 
itself off for specified windows might be easier.

[1] https://www.cygwin.com/ml/cygwin-xfree/2005-01/msg00066.html

-- 
Jon Turney
Volunteer Cygwin/X X Server maintainer

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: WinCompose vs. Cygwin/X
  2017-01-16 14:49     ` Jon Turney
@ 2017-06-24 22:36       ` Michael Schaap (lists)
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Schaap (lists) @ 2017-06-24 22:36 UTC (permalink / raw)
  To: Jon Turney; +Cc: The Cygwin Mailing List

On 16 January 2017 at 15:49, Jon Turney <jon.turney@dronecode.org.uk> wrote:
> On 11/01/2017 22:16, Michael Schaap wrote:
>>
>> On 11-Jan-17 9:51, Csaba Raduly wrote:
>>>
>>> Hi Michael,
>>>
>>> On Tue, Jan 10, 2017 at 2:28 PM, Michael Schaap  wrote:
>>>>
>>>> I recently discovered WinCompose
>>>> <https://github.com/samhocevar/wincompose>,
>>>> a Windows port of XCompose, and fell in love with it.
>>>>
>>>> Unfortunately, it doesn't play nice with Cygwin/X, it seems.
>>>
(snip)
> In the short term, some sort of feature in WinCompose where it turns itself
> off for specified windows might be easier.

Just a quick note that the latest release of WinCompose (0,7,7) does
exactly that: it turns itself off for windows owned by XWin.exe.
So now WinCompose and XCompose do play nice together.

 - Michael

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-24 22:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-10 13:29 WinCompose vs. Cygwin/X Michael Schaap
2017-01-11  8:51 ` Csaba Raduly
2017-01-11 22:16   ` Michael Schaap
2017-01-16 14:49     ` Jon Turney
2017-06-24 22:36       ` Michael Schaap (lists)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).