Changeset 08f345f in mainline


Ignore:
Timestamp:
2020-12-10T10:22:24Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0da03df
Parents:
1762ceb
git-author:
Jiri Svoboda <jiri@…> (2020-12-09 18:22:07)
git-committer:
Jiri Svoboda <jiri@…> (2020-12-10 10:22:24)
Message:

Switch to previous (last) window when cycling

Focusing a window brings it to top, i.e. first in the list (the order of
which is the stacking order). Thus the formerly first window becomes
the second. Switching to the next window thus always cycles trough
the same two windows. Switching to the previous (actualy last window,
there is no previous window) will cycle through all the windows.

File:
1 edited

Legend:

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

    r1762ceb r08f345f  
    118118
    119119        if (seat->focus == wnd) {
    120                 nwnd = ds_display_next_window(wnd);
     120                nwnd = ds_display_prev_window(wnd);
    121121                if (nwnd == NULL)
    122                         nwnd = ds_display_first_window(wnd->display);
     122                        nwnd = ds_display_last_window(wnd->display);
    123123                if (nwnd == wnd)
    124124                        nwnd = NULL;
Note: See TracChangeset for help on using the changeset viewer.