]> git.corax.cc Git - dwm/commit
Make the pointer follow the focus
authorMatthias Kruk <m@m10k.eu>
Sun, 28 Feb 2021 06:04:46 +0000 (15:04 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 28 Feb 2021 06:04:46 +0000 (15:04 +0900)
commitb040562d5740483ac47ee567776aa949dc1f0e13
tree16fbd0e1261d303273c2e341851f7e73e4482631
parentb2dc59a94b35c16e92d7f8e69cefbf72aa898b0a
Make the pointer follow the focus

When the pointer moves to a different client, the focus follows the
pointer, putting the client under the pointer in focus. However, when
the focus is changed using the keyboard, the pointer remains over the
client that is now out-of-focus. If using multiple screens, or if a
client decides to hide the pointer because it is over a text input,
this can make it very annoying to figure out the pointer location.
This commit makes sure that the pointer follows the focus when it
moves to a different client.
dwm.c