gui_session: distinguish view-stacking operations

This patch eliminates the use of invalid view handles as special
Session::Command arguments. The TO_FRONT and TO_BACK operations
interpreted as invalid neighbor as top-most or back-most position.
Those corner cases are now expressed via dedicated commands. The
new stacking commands are FRONT, BACK, FRONT_OF, and BEHIND_OF.

While changing the command interface, the patch removes the OP_
prefix from the opcode values.

Issue #5242
This commit is contained in:
Norman Feske
2024-08-06 15:05:10 +02:00
committed by Christian Helmuth
parent b0803eabdb
commit f274ed549e
29 changed files with 131 additions and 158 deletions

View File

@ -375,7 +375,7 @@ class Log_view
void top()
{
_gui.enqueue<Command::To_front>(_handle, View_handle());
_gui.enqueue<Command::Front>(_handle);
_gui.execute();
}