Changeset 9e84d2c in mainline for uspace/srv/hid/display/window.c
- Timestamp:
- 2021-06-10T13:22:33Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5823aef3
- Parents:
- c9927c66
- git-author:
- Jiri Svoboda <jiri@…> (2021-06-02 17:00:03)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2021-06-10 13:22:33)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/window.c
rc9927c66 r9e84d2c 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.