]> git.neil.brown.name Git - edlib.git/commit
Revise pane_reparent()
authorNeilBrown <neil@brown.name>
Thu, 15 Jun 2023 06:12:35 +0000 (16:12 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 07:51:41 +0000 (17:51 +1000)
commit3958594de0bddbcbddb10ff1c981bb46c2031306
tree0b8a2e53c5dc32a6d1b9013aa5a07161471920da
parentd59d7239ef4f9b7243e794f74e3951da3870c101
Revise pane_reparent()

Treating a disconnected pane (p->parent == p) as a special cas in
pane_reparent() is unpleasant as disconnected panes are not something I
want.

So change pane_reparent() to have a different rule for determining
whether the new parent needs to be attached below p->parent first.

Also ensure Child-Notify notifications are consistant.

If the reparent fails, LOG an error and teach python interface to
trigger an exception.

Finally, only notmuch depended on the special meaning of disconnected
panes, so change it to fit the new model and add better explanations.

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
core-pane.c
lang-python.c
python/module-notmuch.py