]> git.neil.brown.name Git - edlib.git/commit
Introduce Child-Notify
authorNeilBrown <neil@brown.name>
Sat, 17 Jun 2023 06:40:39 +0000 (16:10 +0930)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 07:51:41 +0000 (17:51 +1000)
commitd59d7239ef4f9b7243e794f74e3951da3870c101
treeb0d1c654399b32fb2c881bc45a115c5f2e03b3a5
parent9d0517e842619832c638b62e9ddb5109698f4ae9
Introduce Child-Notify

Child-Notify replaces
  ChildClosed
  ChildRegistered
  ChildMoved
  ChildReplaced

as a pane that handles one typically needs to handle them all.
The difference notifications are reflected in ->num:

 1 : new child registered - ->focus is the child
-1 : existing child is being closed - ->focus is that child
-2 : existing child is being moved away - ->focus is tha child
 2 : existing child replaced - ->focus in the new child
     This follows a "-2" where the old was moved away.

Several handlers are extended to handle all possibilities.

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
core-pane.c
doc-docs.c
lib-messageline.c
lib-popup.c
lib-tile.c
lib-view.c
tests.d/02-grep