Changeset cf32dbd in mainline for uspace/srv/hid/display/client.c


Ignore:
Timestamp:
2019-11-29T19:38:25Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fd777a2
Parents:
38e5f36c
Message:

Introduce window focus, housed in a seat object

File:
1 edited

Legend:

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

    r38e5f36c rcf32dbd  
    3939#include "client.h"
    4040#include "display.h"
     41#include "seat.h"
    4142#include "window.h"
    4243
     
    112113void ds_client_remove_window(ds_window_t *wnd)
    113114{
     115        ds_seat_t *seat;
     116
     117        /* Make sure window is no longer focused in any seat */
     118        seat = ds_display_first_seat(wnd->client->display);
     119        while (seat != NULL) {
     120                ds_seat_evac_focus(seat, wnd);
     121                seat = ds_display_next_seat(seat);
     122        }
     123
    114124        list_remove(&wnd->lwindows);
    115125        wnd->client = NULL;
Note: See TracChangeset for help on using the changeset viewer.