Changeset 68704ab in mainline for uspace/app/taskbar/wndlist.c


Ignore:
Timestamp:
2022-11-09T20:40:57Z (18 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c48192e
Parents:
88d828e
Message:

Do not list popup windows in task bar

File:
1 edited

Legend:

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

    r88d828e r68704ab  
    121121                        goto error;
    122122
    123                 rc = wndlist_append(wndlist, wlist->windows[i], winfo->caption,
    124                     false);
    125                 if (rc != EOK) {
    126                         wndmgt_free_window_info(winfo);
    127                         goto error;
     123                if ((winfo->flags & wndf_popup) == 0) {
     124                        rc = wndlist_append(wndlist, wlist->windows[i],
     125                            winfo->caption, false);
     126                        if (rc != EOK) {
     127                                wndmgt_free_window_info(winfo);
     128                                goto error;
     129                        }
    128130                }
    129131
     
    328330                goto error;
    329331
    330         rc = wndlist_append(wndlist, wnd_id, winfo->caption, true);
    331         if (rc != EOK) {
    332                 wndmgt_free_window_info(winfo);
    333                 goto error;
     332        if ((winfo->flags & wndf_popup) == 0) {
     333                rc = wndlist_append(wndlist, wnd_id, winfo->caption, true);
     334                if (rc != EOK) {
     335                        wndmgt_free_window_info(winfo);
     336                        goto error;
     337                }
    334338        }
    335339
Note: See TracChangeset for help on using the changeset viewer.