stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] [PATCH] Do not give focus to unfocusable windows


From: Ben Spencer
Subject: Re: [STUMP] [PATCH] Do not give focus to unfocusable windows
Date: Sun, 13 Nov 2011 10:49:01 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat, Jul 23, 2011 at 09:16:03AM -0400, Max Mikhanosha wrote:
> Currently in floating groups StumpWM raises and gives focus to newly
> mapped windows unconditionally, whenever they want it or not.
> 
> This results in user's typing being interrupted by notification
> windows, such as xfce-notifyd window when amarok plays new song (or
> any other dbus notifacitons)
> 
> Attached is a patch that stops StumpWM from giving focus in floating
> groups to windows that have AcceptInput hint set to :off. It just raises the 
> window
> but does not give it focus. It does not change any processing for tile 
> groups..

Hi Max,

This looks useful.  I wonder whether it's actually worthwhile caching
the wm hints though, given that in many cases we will be dealing with
a newly-mapped window and thus have to fetch the hints at that point
anyway.

Additionally, it would be nice to put the duplicated focus/raise code
into its own function, say float-focus-or-raise.

Thanks, Ben




reply via email to

[Prev in Thread] Current Thread [Next in Thread]