Changeset 252d03c in mainline for uspace/lib/ui/src/wdecor.c
- Timestamp:
- 2021-04-28T09:22:39Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7470d97
- Parents:
- de227aba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/wdecor.c
rde227aba r252d03c 556 556 * @param wdecor Window decoration 557 557 * @param pos_event Position event 558 */ 559 void ui_wdecor_pos_event(ui_wdecor_t *wdecor, pos_event_t *event) 558 * @return @c ui_claimed iff event was claimed 559 */ 560 ui_evclaim_t ui_wdecor_pos_event(ui_wdecor_t *wdecor, pos_event_t *event) 560 561 { 561 562 gfx_coord2_t pos; … … 571 572 claim = ui_pbutton_pos_event(wdecor->btn_close, event); 572 573 if (claim == ui_claimed) 573 return ;574 return ui_claimed; 574 575 } 575 576 576 577 ui_wdecor_frame_pos_event(wdecor, event); 577 578 578 if ((wdecor->style & ui_wds_titlebar) != 0) 579 if ((wdecor->style & ui_wds_titlebar) != 0) { 579 580 if (event->type == POS_PRESS && 580 gfx_pix_inside_rect(&pos, &geom.title_bar_rect)) 581 gfx_pix_inside_rect(&pos, &geom.title_bar_rect)) { 581 582 ui_wdecor_move(wdecor, &pos); 582 } 583 return ui_claimed; 584 } 585 } 586 587 return ui_unclaimed; 583 588 } 584 589
Note:
See TracChangeset
for help on using the changeset viewer.