]> git.mdlowis.com Git - proto/labwc.git/commit
Remove cruft related to window switcher and keyboard focus
authortokyo4j <hrak1529@gmail.com>
Tue, 31 Dec 2024 04:00:32 +0000 (13:00 +0900)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 31 Dec 2024 05:59:25 +0000 (06:59 +0100)
commit7a6ecca8044c63ce0cc1101305b4b6cdbf2959f9
treef1dab76a961e65f03946f777a66c3cf28c5dd274
parent304a94e716551b9056b0a8792d8dc49f5d5c9784
Remove cruft related to window switcher and keyboard focus

This commit cleans up the comments and cruft from e45fe08.

Background:

- With e45fe08, the keyboard focus is always moved to the switched window
  on finishing window switcher, even with <focus followMouse="yes">.
  Since followMouseRequiresMovement was not implemented at that time
  (behaved like it was always "no"), e45fe08 was necessary to allow users
  users who use followMouse="yes" to move the keyboard focus with window
  switcher.
9a9e20d added followMouseRequiresMovement, but it kept the behavior
  described above even with followMouse="yes" and
  followMouseRequiresMovement="no".
398b80b accidentally invalidated e45fe08, which means the keyboard focus
  is now always moved to the window below the cursor on finishing window
  switcher with followMouse="yes" and followMouseRequiresMovement="no".

Although the invalidation was a accident, I think always setting the
keyboard focus on the window below the cursor is what users expect from
followMouse="yes" and followMouseRequiresMovement="no".
src/input/cursor.c
src/osd.c