Changeset b4b4dafe in mainline for uspace/srv/hid/display/window.c
- Timestamp:
- 2021-06-03T14:02:59Z (3 years ago)
- Children:
- 2e6394e
- Parents:
- 6baab83
- git-author:
- Jiri Svoboda <jiri@…> (2021-06-02 17:00:03)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-06-03 14:02:59)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/window.c
r6baab83 rb4b4dafe 67 67 { 68 68 ds_window_t *wnd = NULL; 69 ds_seat_t *seat; 69 70 gfx_context_t *dgc; 70 71 gfx_coord2_t dims; … … 116 117 wnd->gc = mem_gc_get_ctx(wnd->mgc); 117 118 wnd->cursor = wnd->display->cursor[dcurs_arrow]; 119 wnd->flags = params->flags; 120 121 wnd->dpos.x = ((wnd->id - 1) & 1) * 400; 122 wnd->dpos.y = ((wnd->id - 1) & 2) / 2 * 300; 123 124 seat = ds_display_first_seat(client->display); 125 126 if ((params->flags & wndf_popup) != 0) 127 ds_seat_set_popup(seat, wnd); 128 else 129 ds_seat_set_focus(seat, wnd); 130 131 (void) ds_display_paint(wnd->display, NULL); 132 118 133 *rgc = wnd; 119 134 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.