Changeset 68704ab in mainline for uspace/lib


Ignore:
Timestamp:
2022-11-09T20:40:57Z (3 years 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

Location:
uspace/lib/wndmgt
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/wndmgt/include/types/wndmgt.h

    r88d828e r68704ab  
    8787        /** Window caption */
    8888        char *caption;
     89        /** Window flags */
     90        unsigned flags;
    8991} wndmgt_window_info_t;
    9092
  • uspace/lib/wndmgt/src/wndmgt.c

    r88d828e r68704ab  
    270270
    271271        info->caption = caption;
     272        info->flags = ipc_get_arg1(&answer);
    272273        *rinfo = info;
    273274        return EOK;
  • uspace/lib/wndmgt/src/wndmgt_srv.c

    r88d828e r68704ab  
    198198        }
    199199
    200         async_answer_0(icall, EOK);
     200        async_answer_1(icall, EOK, info->flags);
    201201        wndmgt_free_window_info(info);
    202202}
  • uspace/lib/wndmgt/test/wndmgt.c

    r88d828e r68704ab  
    281281        PCUT_ASSERT_NOT_NULL(resp.get_window_info_rinfo);
    282282        resp.get_window_info_rinfo->caption = str_dup("Hello");
     283        resp.get_window_info_rinfo->flags = 42;
    283284        PCUT_ASSERT_NOT_NULL(resp.get_window_info_rinfo->caption);
    284285        wnd_id = 1;
     
    290291
    291292        PCUT_ASSERT_STR_EQUALS("Hello", info->caption);
     293        PCUT_ASSERT_INT_EQUALS(42, info->flags);
    292294
    293295        wndmgt_free_window_info(info);
Note: See TracChangeset for help on using the changeset viewer.