Changeset 9901f267 in mainline for uspace/srv/hid/display/test/seat.c


Ignore:
Timestamp:
2020-05-22T10:38:52Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ef20a91
Parents:
9242ad9
git-author:
Jiri Svoboda <jiri@…> (2020-05-21 17:38:41)
git-committer:
Jiri Svoboda <jiri@…> (2020-05-22 10:38:52)
Message:

Display server needs to override cursor when resizing windows

Although the pointer moves, the window is not resized until button
is released. Therefore we need override the cursor from what it
would be just based on where the pointer is located.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/test/seat.c

    r9242ad9 r9901f267  
    353353}
    354354
     355/** Set WM cursor */
     356PCUT_TEST(set_wm_cursor)
     357{
     358        ds_display_t *disp;
     359        ds_client_t *client;
     360        ds_seat_t *seat;
     361        bool called_cb = false;
     362        errno_t rc;
     363
     364        rc = ds_display_create(NULL, &disp);
     365        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     366
     367        rc = ds_client_create(disp, &test_ds_client_cb, &called_cb, &client);
     368        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     369
     370        rc = ds_seat_create(disp, &seat);
     371        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     372
     373        ds_seat_set_wm_cursor(seat, disp->cursor[dcurs_size_ud]);
     374        ds_seat_set_wm_cursor(seat, NULL);
     375
     376        ds_seat_destroy(seat);
     377        ds_client_destroy(client);
     378        ds_display_destroy(disp);
     379}
     380
    355381PCUT_EXPORT(seat);
Note: See TracChangeset for help on using the changeset viewer.