[dev] [st] bad focus

From: <ingolemo_AT_gmail.com>
Date: Sat, 03 Sep 2011 10:02:52 -0700 (PDT)


Currently, st sets its focus based on both FocusIn and EnterNotify XEvents
and uses this focus to decide whether to draw the cursor. This causes a
problem for window managers that don't use _focus follows pointer_ because
it is then possible for st to have the keyboard focus but not be drawing
the cursor.

The obvious fix is to simply remove the EnterNotify and LeaveNotify events.
I have attached a patch that does so. I've tested this lightly in several
window managers (tiling and non-tiling, various focus models) and it seems
to have the desired effect.


Received on Sat Sep 03 2011 - 19:02:52 CEST

This archive was generated by hypermail 2.2.0 : Sat Sep 03 2011 - 19:12:03 CEST