On Sat, Dec 31, 2011 at 02:03:25PM +1300, f...@stefan-klinger.de wrote:
> On Fri, Dec 30, 2011 at 09:48:02AM +0000, Thomas Adam wrote:
> > On 29 December 2011 23:02,  <f...@stefan-klinger.de> wrote:
> > > I'm looking for a way to prevent focus to shift from one window to
> > > another, as long as a key is held down.
> > 
> > It's possible, but impractical.  Why are you thinking you need this?
> 
> Another example: I use the key combination mod4-d to delete a window,
> where mod4 is produced by the window key. Imagine focus is in an xterm
> I want to get rid of, so I hold down the window key, and hit
> D. Unfortunately, just a fraction of a second before I pressed D, the
> application that took ages to start mapped its first window right
> beneath the mouse pointer, gets the focus (which follows the mouse),
> and is therefore deleted.

So set a reasonable delay for you binding:

Schedule 700 Close

-- Thomas Adam

-- 
"Deep in my heart I wish I was wrong.  But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)

Reply via email to