Changeset 5d62130 in mainline for uspace/lib


Ignore:
Timestamp:
2022-11-13T10:56:43Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a130983
Parents:
a5c7b865
Message:

Taskbar should be always on top

We add support for topmost windows and make the taskbar window topmost.

Location:
uspace/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/display/include/types/display/wndparams.h

    ra5c7b865 r5d62130  
    4242        /** Popup window (capture events, no focus) */
    4343        wndf_popup = 0x1,
     44        /** Topmost window */
     45        wndf_topmost = 0x2,
    4446        /** Set specific initial window position */
    45         wndf_setpos = 0x2,
     47        wndf_setpos = 0x4,
    4648        /** Window is maximized */
    47         wndf_maximized = 0x4,
     49        wndf_maximized = 0x8,
    4850        /** Special system window */
    49         wndf_system = 0x8
     51        wndf_system = 0x10
    5052} display_wnd_flags_t;
    5153
  • uspace/lib/ui/include/types/ui/window.h

    ra5c7b865 r5d62130  
    6767        /** Popup window */
    6868        ui_wndf_popup = 0x1,
     69        /** Topmost window */
     70        ui_wndf_topmost = 0x2,
    6971        /** Special system window */
    70         ui_wndf_system = 0x2
     72        ui_wndf_system = 0x4
    7173} ui_wnd_flags_t;
    7274
  • uspace/lib/ui/src/window.c

    ra5c7b865 r5d62130  
    228228        if ((params->flags & ui_wndf_popup) != 0)
    229229                dparams.flags |= wndf_popup;
     230        if ((params->flags & ui_wndf_topmost) != 0)
     231                dparams.flags |= wndf_topmost;
    230232        if ((params->flags & ui_wndf_system) != 0)
    231233                dparams.flags |= wndf_system;
Note: See TracChangeset for help on using the changeset viewer.