Changeset acd7ac2 in mainline for uspace/srv/hid/display/seat.c


Ignore:
Timestamp:
2023-08-09T11:27:03Z (14 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
24be331e
Parents:
a77c722
git-author:
Jiri Svoboda <jiri@…> (2023-08-08 17:26:15)
git-committer:
Jiri Svoboda <jiri@…> (2023-08-09 11:27:03)
Message:

Switch focus to the right window when window is closed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/seat.c

    ra77c722 racd7ac2  
    204204
    205205        /* Find alternate window that is neither system nor minimized */
    206         nwnd = ds_window_find_alt(wnd, ~(wndf_minimized | wndf_system));
     206        nwnd = ds_window_find_prev(wnd, ~(wndf_minimized | wndf_system));
    207207
    208208        if (nwnd == NULL) {
    209209                /* Find alternate window that is not minimized */
    210                 nwnd = ds_window_find_alt(wnd, ~wndf_minimized);
     210                nwnd = ds_window_find_prev(wnd, ~wndf_minimized);
    211211        }
    212212
     
    224224
    225225        /* Find alternate window that is not a system window */
    226         nwnd = ds_window_find_alt(seat->focus, ~wndf_system);
     226        nwnd = ds_window_find_next(seat->focus, ~wndf_system);
    227227
    228228        /* Only switch focus if there is another window */
Note: See TracChangeset for help on using the changeset viewer.