Changeset 9901f267 in mainline for uspace/lib/display


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.

Location:
uspace/lib/display
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/display/include/display/wndresize.h

    r9242ad9 r9901f267  
    3636#define _LIBDISPLAY_DISPLAY_WNDRESIZE_H_
    3737
     38#include <stdbool.h>
     39#include "../types/display/cursor.h"
    3840#include "../types/display/wndresize.h"
     41
     42extern display_stock_cursor_t display_cursor_from_wrsz(display_wnd_rsztype_t);
     43extern bool display_wndrsz_valid(display_wnd_rsztype_t);
    3944
    4045#endif
  • uspace/lib/display/meson.build

    r9242ad9 r9901f267  
    3131        'src/display.c',
    3232        'src/disp_srv.c',
     33        'src/wndresize.c',
    3334)
    3435
     
    3637        'test/display.c',
    3738        'test/main.c',
     39        'test/wndresize.c',
    3840)
  • uspace/lib/display/test/main.c

    r9242ad9 r9901f267  
    11/*
    2  * Copyright (c) 2019 Jiri Svoboda
     2 * Copyright (c) 2020 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3232
    3333PCUT_IMPORT(display);
     34PCUT_IMPORT(wndresize);
    3435
    3536PCUT_MAIN();
Note: See TracChangeset for help on using the changeset viewer.