Changeset 3be5366 in mainline for uspace/lib/ui/src/window.c


Ignore:
Timestamp:
2023-01-19T12:09:34Z (15 months ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

Add pos_id information to move request, too

This will become useful momentarily.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/window.c

    raaa3b855 r3be5366  
    7878static void wd_unmaximize(ui_wdecor_t *, void *);
    7979static void wd_close(ui_wdecor_t *, void *);
    80 static void wd_move(ui_wdecor_t *, void *, gfx_coord2_t *);
     80static void wd_move(ui_wdecor_t *, void *, gfx_coord2_t *, sysarg_t);
    8181static void wd_resize(ui_wdecor_t *, void *, ui_wdecor_rsztype_t,
    8282    gfx_coord2_t *, sysarg_t);
     
    973973 * @param arg Argument (window)
    974974 * @param pos Position where the title bar was pressed
    975  */
    976 static void wd_move(ui_wdecor_t *wdecor, void *arg, gfx_coord2_t *pos)
     975 * @param pos_id Positioning device ID
     976 */
     977static void wd_move(ui_wdecor_t *wdecor, void *arg, gfx_coord2_t *pos,
     978    sysarg_t pos_id)
    977979{
    978980        ui_window_t *window = (ui_window_t *) arg;
    979981
    980982        if (window->dwindow != NULL)
    981                 (void) display_window_move_req(window->dwindow, pos);
     983                (void) display_window_move_req(window->dwindow, pos, pos_id);
    982984}
    983985
Note: See TracChangeset for help on using the changeset viewer.