[clfswm-devel] Questions / Feature requests regarding the focus policy
Philippe Brochard
pbrochard at common-lisp.net
Wed Mar 20 14:49:58 UTC 2013
Renaud Casenave-Péré a écrit :
> Hi,
>
Hi,
> I am starting to fiddle with the focus policy of my frames and windows and I am
> missing "follow mouse" focus policy. There are three sloppy variants but I would
> really like a follow mouse one. May I ask for its addition to clfswm ?
>
Yes of course, we can add this in clfswm. But before this, the focus
policy is handled by frames. So I think you want sloppy focus for
windows in their own frame when they're in tilling mode. A simple way to
do this is to explode windows in their frame to create a frame per
window in the current frame :
Second mode -> f (frame) -> s (miscellaneous menu) ->
x (create a window for each windows in frame)
And then set a sloppy focus policy for all windows. Or make it the
default from your configuration file.
Is this enough or do we have to add a new focus system and follow the
focus for windows and not only for frames?
> I also would like to be able to keep windows from stealing the focus
> automatically. For example, if I launch conkeror from the terminal (even if it
> is already open), the focus automatically change to conkeror, but I would like
> to be able to stay on the terminal window and prevent conkeror from stealing my
> focus. Would this be possible in a simple way ?
>
If you don't want to create a new frame, you can use the
leave-focus-frame-nw-hook new window hook.
Second mode -> f (frame) -> n (frame new window hook) ->
f (open the next window in the current frame and leave the focus on
the current child).
Indeed, you can bind a key for it if you often need it.
If you need the same but with a new frame not focused, we need to add
some little code (see clfswm-nw-hooks.lisp).
> Thanks !
>
Hope This Helps,
Philippe
More information about the clfswm-devel
mailing list