ratpoison-devel
[Top][All Lists]
Advanced

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

[RP] patch: focus follows mouse (rat) and sloppy


From: Jeff Abrahamson
Subject: [RP] patch: focus follows mouse (rat) and sloppy
Date: Mon, 29 Sep 2014 21:15:44 +0200

I've implemented (optional!) mouse-based focus in ratpoison. This is intended to replace sloppy.c. It has the following advantages:

This is a relatively complex patch. I don't think I've damaged anything when the feature is off, but it wouldn't surprise me if I missed some edge case that I didn't think of when the feature is on. Please let me know if you are able to test this.

To turn it on, type

:focus_policy

The valid arguments are manual, sloppy, and ffm.

I have not updated the docs yet.

I am suspicious about transient windows, but so far it seems to work correctly. I just can't shake the feeling that I missed a detail there.

There is a technique for requesting events on a window but not on its subwindow. I have to find and fix this, because at the moment the root window requesting motion events in ffm mode means that all windows do. It's harmless but inefficient. And it makes the log longer.

Jeff Abrahamson
+33 6 24 40 01 57
+44 7920 594 255    <-- only if I'm in the UK

http://jeff.purple.com/
http://blog.purple.com/jeff/

Attachment: 0001-Implement-mouse-based-focus.patch
Description: Text Data


reply via email to

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