Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c48192e in mainline


Ignore:
Timestamp:
2022-11-09T20:56:24Z (3 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
2f106b0
Parents:
68704ab
Message:

Prevent task bar from being listed in task bar

Location:
uspace
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskbar/taskbar.c

    r68704ab rc48192e  
    130130        params.caption = "Task Bar";
    131131        params.placement = ui_wnd_place_bottom_left;
     132
     133        /* Window has no titlebar */
    132134        params.style &= ~ui_wds_titlebar;
     135
     136        /* Prevent taskbar window from being listed in taskbar */
     137        params.flags |= ui_wndf_system;
    133138
    134139        params.rect.p0.x = 0;
  • uspace/app/taskbar/wndlist.c

    r68704ab rc48192e  
    121121                        goto error;
    122122
    123                 if ((winfo->flags & wndf_popup) == 0) {
     123                if ((winfo->flags & (wndf_popup | wndf_system)) == 0) {
    124124                        rc = wndlist_append(wndlist, wlist->windows[i],
    125125                            winfo->caption, false);
     
    330330                goto error;
    331331
    332         if ((winfo->flags & wndf_popup) == 0) {
     332        if ((winfo->flags & (wndf_popup | wndf_system)) == 0) {
    333333                rc = wndlist_append(wndlist, wnd_id, winfo->caption, true);
    334334                if (rc != EOK) {
  • uspace/lib/display/include/types/display/wndparams.h

    r68704ab rc48192e  
    4545        wndf_setpos = 0x2,
    4646        /** Window is maximized */
    47         wndf_maximized = 0x4
     47        wndf_maximized = 0x4,
     48        /** Special system window */
     49        wndf_system = 0x8
    4850} display_wnd_flags_t;
    4951
  • uspace/lib/ui/include/types/ui/window.h

    r68704ab rc48192e  
    6666typedef enum {
    6767        /** Popup window */
    68         ui_wndf_popup = 0x1
     68        ui_wndf_popup = 0x1,
     69        /** Special system window */
     70        ui_wndf_system = 0x2
    6971} ui_wnd_flags_t;
    7072
  • uspace/lib/ui/src/window.c

    r68704ab rc48192e  
    228228        if ((params->flags & ui_wndf_popup) != 0)
    229229                dparams.flags |= wndf_popup;
     230        if ((params->flags & ui_wndf_system) != 0)
     231                dparams.flags |= wndf_system;
    230232
    231233        if (ui->display != NULL) {
Note: See TracChangeset for help on using the changeset viewer.