Changeset 3be5366 in mainline for uspace/lib/ui/src/wdecor.c
- Timestamp:
- 2023-01-19T12:09:34Z (15 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6828a56
- Parents:
- aaa3b855
- git-author:
- Jiri Svoboda <jiri@…> (2023-01-19 18:09:23)
- git-committer:
- Jiri Svoboda <jiri@…> (2023-01-19 12:09:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/wdecor.c
raaa3b855 r3be5366 465 465 * @param wdecor Window decoration 466 466 * @param pos Position where the title bar was pressed 467 */ 468 void ui_wdecor_move(ui_wdecor_t *wdecor, gfx_coord2_t *pos) 467 * @param pos_id Positioning device ID 468 */ 469 void ui_wdecor_move(ui_wdecor_t *wdecor, gfx_coord2_t *pos, sysarg_t pos_id) 469 470 { 470 471 if (wdecor->cb != NULL && wdecor->cb->move != NULL) 471 wdecor->cb->move(wdecor, wdecor->arg, pos );472 wdecor->cb->move(wdecor, wdecor->arg, pos, pos_id); 472 473 } 473 474 … … 812 813 { 813 814 gfx_coord2_t pos; 815 sysarg_t pos_id; 814 816 ui_wdecor_rsztype_t rsztype; 815 817 ui_stock_cursor_t cursor; … … 817 819 pos.x = event->hpos; 818 820 pos.y = event->vpos; 821 pos_id = event->pos_id; 819 822 820 823 /* Set appropriate resizing cursor, or set arrow cursor */ … … 827 830 /* Press on window border? */ 828 831 if (rsztype != ui_wr_none && event->type == POS_PRESS) 829 ui_wdecor_resize(wdecor, rsztype, &pos, event->pos_id);832 ui_wdecor_resize(wdecor, rsztype, &pos, pos_id); 830 833 } 831 834 … … 839 842 { 840 843 gfx_coord2_t pos; 844 sysarg_t pos_id; 841 845 ui_wdecor_geom_t geom; 842 846 ui_evclaim_t claim; … … 844 848 pos.x = event->hpos; 845 849 pos.y = event->vpos; 850 pos_id = event->pos_id; 846 851 847 852 ui_wdecor_get_geom(wdecor, &geom); … … 870 875 if (event->type == POS_PRESS && 871 876 gfx_pix_inside_rect(&pos, &geom.title_bar_rect)) { 872 ui_wdecor_move(wdecor, &pos );877 ui_wdecor_move(wdecor, &pos, pos_id); 873 878 return ui_claimed; 874 879 }
Note:
See TracChangeset
for help on using the changeset viewer.