Changeset ca9aa89 in mainline


Ignore:
Timestamp:
2023-01-05T21:00:53Z (16 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ffed09d
Parents:
ededdc4
Message:

Improve Shift-Tab window switching

Use ds_window_find_alt() and make sure we do not switch to the Task bar.

File:
1 edited

Legend:

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

    rededdc4 rca9aa89  
    188188        ds_window_t *nwnd;
    189189
    190         if (seat->focus != NULL)
    191                 nwnd = ds_display_prev_window(seat->focus);
    192         else
    193                 nwnd = NULL;
    194 
    195         if (nwnd == NULL)
    196                 nwnd = ds_display_last_window(seat->display);
    197 
     190        /* Find alternate window that is not a system window */
     191        nwnd = ds_window_find_alt(seat->focus, ~wndf_system);
     192
     193        /* Only switch focus if there is another window */
    198194        if (nwnd != NULL)
    199195                ds_seat_set_focus(seat, nwnd);
Note: See TracChangeset for help on using the changeset viewer.