Changeset cf32dbd in mainline for uspace/srv/hid/display/dsops.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/dsops.c

    r38e5f36c rcf32dbd  
    3838#include <io/log.h>
    3939#include "client.h"
     40#include "display.h"
     41#include "dsops.h"
     42#include "seat.h"
    4043#include "window.h"
    41 #include "dsops.h"
    4244
    4345static errno_t disp_window_create(void *, sysarg_t *);
     
    5557        errno_t rc;
    5658        ds_client_t *client = (ds_client_t *) arg;
     59        ds_seat_t *seat;
    5760        ds_window_t *wnd;
    5861
     
    6972        wnd->dpos.x = ((wnd->id - 1) & 1) * 400;
    7073        wnd->dpos.y = ((wnd->id - 1) & 2) / 2 * 300;
     74
     75        /*
     76         * XXX This should be performed by window manager. It needs to determine
     77         * whether the new window should get focus and which seat should
     78         * focus on it.
     79         */
     80        seat = ds_display_first_seat(client->display);
     81        ds_seat_set_focus(seat, wnd);
    7182
    7283        *rwnd_id = wnd->id;
Note: See TracChangeset for help on using the changeset viewer.