Changeset cf32dbd in mainline for uspace/srv/hid/display/dsops.c
- Timestamp:
- 2019-11-29T19:38:25Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fd777a2
- Parents:
- 38e5f36c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/dsops.c
r38e5f36c rcf32dbd 38 38 #include <io/log.h> 39 39 #include "client.h" 40 #include "display.h" 41 #include "dsops.h" 42 #include "seat.h" 40 43 #include "window.h" 41 #include "dsops.h"42 44 43 45 static errno_t disp_window_create(void *, sysarg_t *); … … 55 57 errno_t rc; 56 58 ds_client_t *client = (ds_client_t *) arg; 59 ds_seat_t *seat; 57 60 ds_window_t *wnd; 58 61 … … 69 72 wnd->dpos.x = ((wnd->id - 1) & 1) * 400; 70 73 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); 71 82 72 83 *rwnd_id = wnd->id;
Note:
See TracChangeset
for help on using the changeset viewer.