Changeset 554a5f1 in mainline


Ignore:
Timestamp:
2020-11-26T12:35:52Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
266ec54
Parents:
2d879f7
git-author:
Jiri Svoboda <jiri@…> (2020-11-25 19:35:39)
git-committer:
Jiri Svoboda <jiri@…> (2020-11-26 12:35:52)
Message:

Do not switch focus to the same window

If the same window is clicked, this caused it to be unfocused first
(including re-painting the title bar) and then focused again,
causing very visible flicker in its title bar.

File:
1 edited

Legend:

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

    r2d879f7 r554a5f1  
    9090void ds_seat_set_focus(ds_seat_t *seat, ds_window_t *wnd)
    9191{
     92        if (wnd == seat->focus) {
     93                /* Focus is not changing */
     94                return;
     95        }
     96
    9297        if (seat->focus != NULL)
    9398                ds_window_post_unfocus_event(seat->focus);
Note: See TracChangeset for help on using the changeset viewer.