From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28494 invoked by alias); 23 Feb 2004 03:36:09 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Reply-To: cygwin-xfree@cygwin.com Received: (qmail 28486 invoked from network); 23 Feb 2004 03:36:08 -0000 Received: from unknown (HELO SpacedOut.fries.net) (67.64.210.234) by sources.redhat.com with SMTP; 23 Feb 2004 03:36:08 -0000 Received: from SpacedOut.fries.net (david@localhost [127.0.0.1]) by SpacedOut.fries.net (8.12.10/8.12.10/Debian-5) with ESMTP id i1N3a7SP015479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 22 Feb 2004 21:36:07 -0600 Received: (from david@localhost) by SpacedOut.fries.net (8.12.10/8.12.10/Debian-5) id i1N3a6jt015478 for cygwin-xfree@cygwin.com; Sun, 22 Feb 2004 21:36:06 -0600 Date: Mon, 23 Feb 2004 03:57:00 -0000 From: David Fries To: cygwin-xfree@cygwin.com Subject: Re: Alt-Tab again Message-ID: <20040223033606.GA28256@spacedout.fries.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i X-SW-Source: 2004-02/txt/msg00209.txt.bz2 List-Id: 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 http://fries.net/~david/pgpkey.txt