mirror of
https://github.com/labwc/labwc.git
synced 2026-02-17 22:05:30 -05:00
src/osd.c: Ensure destroying views are not used as preview anchors
This commit is contained in:
parent
c83c1beace
commit
92976f30d0
2 changed files with 11 additions and 8 deletions
|
|
@ -216,6 +216,10 @@ desktop_cycle_view(struct server *server, struct view *start_view,
|
|||
* - Pre-select the top view if NOT already focused
|
||||
* - Otherwise select the view second from the top
|
||||
*/
|
||||
|
||||
/* Make sure to have all nodes in their actual ordering */
|
||||
osd_preview_restore(server);
|
||||
|
||||
if (!start_view) {
|
||||
start_view = first_view(server);
|
||||
if (!start_view || start_view != desktop_focused_view(server)) {
|
||||
|
|
@ -233,9 +237,6 @@ desktop_cycle_view(struct server *server, struct view *start_view,
|
|||
/* Scene nodes are ordered like last node == displayed topmost */
|
||||
iter = dir == LAB_CYCLE_DIR_FORWARD ? get_prev_item : get_next_item;
|
||||
|
||||
/* Make sure to have all nodes in their actual ordering */
|
||||
osd_preview_restore(server);
|
||||
|
||||
do {
|
||||
list_item = iter(list_item);
|
||||
if (list_item == list_head) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue