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


Ignore:
Timestamp:
2023-01-22T11:05:28Z (21 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0161d16
Parents:
5d380b6
Message:

Pass input device ID via display specification argument

This allows launcher to start applications in the correct seat,
meaning the correct seat's focus will be changed to the newly
created window.

File:
1 edited

Legend:

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

    r5d380b6 rb1f0a14  
    227227        /* Only allow making the window larger */
    228228        gfx_rect_dims(&params->rect, &dparams.min_size);
    229         dparams.idev_id = params->idev_id;
     229
     230        /*
     231         * If idev_id is not specified, use the UI default (probably
     232         * obtained from display specification. This creates the
     233         * main window in the seat specified on the command line.
     234         */
     235        if (params->idev_id != 0)
     236                dparams.idev_id = params->idev_id;
     237        else
     238                dparams.idev_id = ui->idev_id;
    230239
    231240        if ((params->flags & ui_wndf_popup) != 0)
Note: See TracChangeset for help on using the changeset viewer.