mirror of
https://github.com/labwc/labwc.git
synced 2026-06-13 14:33:18 -04:00
add comment for "view_move_to_back()"
This commit is contained in:
parent
657096f419
commit
96a22b457c
1 changed files with 9 additions and 0 deletions
|
|
@ -1150,6 +1150,15 @@ run_action(struct view *view, struct action *action,
|
||||||
if (action_get_bool(action, "immediate", false)) {
|
if (action_get_bool(action, "immediate", false)) {
|
||||||
cycle_finish(true);
|
cycle_finish(true);
|
||||||
if (view && dir == LAB_CYCLE_DIR_FORWARD) {
|
if (view && dir == LAB_CYCLE_DIR_FORWARD) {
|
||||||
|
/*
|
||||||
|
* With immediate=no, running NextWindow just
|
||||||
|
* once places the previously selected view
|
||||||
|
* second from the top, causing the next call
|
||||||
|
* to select it again. For immediate=yes, to
|
||||||
|
* prevent getting stuck between the topmost
|
||||||
|
* two views, we move the previously selected
|
||||||
|
* view to the bottom.
|
||||||
|
*/
|
||||||
view_move_to_back(view);
|
view_move_to_back(view);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue