Changeset 3c3657c in mainline for uspace/lib/ui/src/ui.c
- Timestamp:
- 2021-09-04T08:04:36Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7896f23
- Parents:
- 81d3612
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/ui.c
r81d3612 r3c3657c 236 236 ui_window_t *awnd; 237 237 ui_evclaim_t claim; 238 pos_event_t pos; 238 239 239 240 awnd = ui_window_get_active(ui); … … 246 247 break; 247 248 case CEV_POS: 248 claim = ui_wdecor_pos_event(awnd->wdecor, &event->ev.pos); 249 pos = event->ev.pos; 250 #ifdef CONFIG_UI_CS_RENDER 251 /* 252 * TODO Enable translation for server-side rendering 253 * once we can translate rendering operations in this 254 * case. 255 */ 256 pos.hpos -= awnd->dpos.x; 257 pos.vpos -= awnd->dpos.y; 258 #endif 259 260 claim = ui_wdecor_pos_event(awnd->wdecor, &pos); 249 261 /* Note: If event is claimed, awnd might not be valid anymore */ 250 262 if (claim == ui_unclaimed) 251 ui_window_send_pos(awnd, &event->ev.pos); 263 ui_window_send_pos(awnd, &pos); 264 252 265 break; 253 266 }
Note:
See TracChangeset
for help on using the changeset viewer.