public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Alt-Tab again
@ 2004-02-20 19:36 Matt Behrens
  0 siblings, 0 replies; 3+ messages in thread
From: Matt Behrens @ 2004-02-20 19:36 UTC (permalink / raw)
  To: cygwin-xfree

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]

After spending some time cruising mailing list archives to try to
find a solution to wanting to use Alt-Tab in XWin, I found this:

http://sources.redhat.com/ml/cygwin-xfree/2003-07/msg00040.html

Has anyone tried adding this to XWin code?

-- 
Matt Behrens <matt@zigg.com> <http://www.zigg.com/>
Life's too short to recompile what you don't hack. <http://www.debian.org/>

[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]

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

* Re: Alt-Tab again
@ 2004-02-23  3:57 David Fries
  0 siblings, 0 replies; 3+ messages in thread
From: David Fries @ 2004-02-23  3:57 UTC (permalink / raw)
  To: cygwin-xfree

Here's the source.  Comments welcome.

http://spacedout.fries.net/~david/download/
or
http://spacedout.fries.net/~david/download/winkey_0.0.1a.tar.bz2

>dfries wrote:
>  I've got it coded and working here with XWin.exe, it is a little rough
>  around the edges, but I'm using it all day every day.  I also expect
>  it isn't up to date with the current XWin.exe.
>  
>  I picked PrintScreen as my 'disable keyboard hook' key, no good reason
>  for that specific key though.
>  
>  What it provides,
>  
>  a dll that is loaded and used when XWin.exe is started when the
>  argument  -claimkeyboard is given on the command line,
>  
>  each time the window gets focus it enables the hook, when it looses
>  focus it gives it up,
>  
>  all keys (except after the PrintScreen is pressed) are sent to X
>  windows, window keys included (I have a lot of hot keys assigned to
>  them with fvwm),
>  
>  problems,
>  
>  num lock, caps lock, and scroll lock don't toggle when X has focus
>  (X-windows gets the keys, windows doesn't so the leds don't toggle),
>  
>  if a key is held when entering X-windows and is lifted before leaving,
>  windows still has the state of that key as held when you leave, ie if
>  the window key is pressed
>  
>  Window-U was taken by something called Utility Monitor, I disabled the
>  program so it wouldn't run, but the hook would only get the U keyup
>  when window was held, so it currently sends U down then U up when
>  Window is held.  I've since found that if you disable all the
>  accessibility keys from windows it no longer hogs Window-U, so this
>  hack should be taken out (and a note to let people know how to use
>  those keys).
>  
>  By default XWin.exe will ignore any of the window keys.  My patch
>  passes them through, but needs to ignore them if the hook isn't
>  enabled.
>  
>  I've only tested the full x server in a window, not the multi window
>  mode.
>  
>  The dll must manually be moved into place.
>  
>  It has been a long time since I updated the XWin source, but the
>  embedded XWin/xwin-20031109-1622.tar.bz2 might be the orignal source
>  to do a diff against.
>  
>  E-mail me for the source as it is too big for the mailing list.

-- 
David Fries <dfries@mail.win.org>
http://fries.net/~david/pgpkey.txt


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

* Re: Alt-Tab again
@ 2004-02-20 23:49 David Fries
  0 siblings, 0 replies; 3+ messages in thread
From: David Fries @ 2004-02-20 23:49 UTC (permalink / raw)
  To: cygwin-xfree

I've got it coded and working here with XWin.exe, it is a little rough
around the edges, but I'm using it all day every day.  I also expect
it isn't up to date with the current XWin.exe.

I picked PrintScreen as my 'disable keyboard hook' key, no good reason
for that specific key though.

What it provides,

a dll that is loaded and used when XWin.exe is started when the
argument  -claimkeyboard is given on the command line,

each time the window gets focus it enables the hook, when it looses
focus it gives it up,

all keys (except after the PrintScreen is pressed) are sent to X
windows, window keys included (I have a lot of hot keys assigned to
them with fvwm),

problems,

num lock, caps lock, and scroll lock don't toggle when X has focus
(X-windows gets the keys, windows doesn't so the leds don't toggle),

if a key is held when entering X-windows and is lifted before leaving,
windows still has the state of that key as held when you leave, ie if
the window key is pressed

Window-U was taken by something called Utility Monitor, I disabled the
program so it wouldn't run, but the hook would only get the U keyup
when window was held, so it currently sends U down then U up when
Window is held.  I've since found that if you disable all the
accessibility keys from windows it no longer hogs Window-U, so this
hack should be taken out (and a note to let people know how to use
those keys).

By default XWin.exe will ignore any of the window keys.  My patch
passes them through, but needs to ignore them if the hook isn't
enabled.

I've only tested the full x server in a window, not the multi window
mode.

The dll must manually be moved into place.

It has been a long time since I updated the XWin source, but the
embedded XWin/xwin-20031109-1622.tar.bz2 might be the orignal source
to do a diff against.

E-mail me for the source as it is too big for the mailing list.

-- 
David Fries <dfries@mail.win.org>
http://fries.net/~david/pgpkey.txt


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

end of thread, other threads:[~2004-02-23  3:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-20 19:36 Alt-Tab again Matt Behrens
2004-02-20 23:49 David Fries
2004-02-23  3:57 David Fries

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