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


Ignore:
Timestamp:
2019-11-29T19:38:25Z (4 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/main.c

    r38e5f36c rcf32dbd  
    5050#include "main.h"
    5151#include "output.h"
     52#include "seat.h"
    5253#include "window.h"
    5354
     
    7879{
    7980        ds_display_t *disp = NULL;
     81        ds_seat_t *seat = NULL;
    8082        gfx_context_t *gc = NULL;
    8183        errno_t rc;
     
    8486
    8587        rc = ds_display_create(NULL, &disp);
     88        if (rc != EOK)
     89                goto error;
     90
     91        rc = ds_seat_create(disp, &seat);
    8692        if (rc != EOK)
    8793                goto error;
     
    121127        if (gc != NULL)
    122128                gfx_context_delete(gc);
     129        if (seat != NULL)
     130                ds_seat_destroy(seat);
    123131        if (disp != NULL)
    124132                ds_display_destroy(disp);
Note: See TracChangeset for help on using the changeset viewer.