about summary refs log tree commit diff
path: root/third_party/exwm/exwm-config.el
diff options
context:
space:
mode:
authorSteven Allen <steven@stebalien.com>2024-02-05T15·32-0800
committerGitHub <noreply@github.com>2024-02-05T15·32-0800
commita6e66f5e339473105d83dd4e7e3f3db9b1aa9f0f (patch)
tree494a33e00b8870ca490ad83a377aeebfbb9e6dce /third_party/exwm/exwm-config.el
parent44e74bcc07f6ab2f985bcce12d68dccb943475cf (diff)
Simplify and improve focus handling (#10)
Combine both focus update timers into one and ignore windows in "no
focus" frames.

* exwm-input.el
  (exwm-input--on-buffer-list-update):
    Avoid focusing windows in frames with the `no-accept-focus` frame
    property.
  (exwm-input--update-focus-defer-timer):
    Remove the duplicate timer.
  (exwm-input--update-focus-defer):
    Use a single `exwm-input--update-focus-timer`.
  (exwm-input--update-focus-commit):
    Read `exwm-input--update-focus-window` instead of taking a window
    as a parameter (this is what lets us combine the timers).
  (exwm-input--update-focus-commit):
    Use a let-bind instead of unwind-protect.
  (exwm-input--exit):
    Remove references to `exwm-input--update-focus-defer-timer`.
Diffstat (limited to 'third_party/exwm/exwm-config.el')
0 files changed, 0 insertions, 0 deletions