Changeset 68704ab in mainline
- Timestamp:
- 2022-11-09T20:40:57Z (2 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c48192e
- Parents:
- 88d828e
- Location:
- uspace
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskbar/wndlist.c
r88d828e r68704ab 121 121 goto error; 122 122 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 } 128 130 } 129 131 … … 328 330 goto error; 329 331 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 } 334 338 } 335 339 -
uspace/lib/wndmgt/include/types/wndmgt.h
r88d828e r68704ab 87 87 /** Window caption */ 88 88 char *caption; 89 /** Window flags */ 90 unsigned flags; 89 91 } wndmgt_window_info_t; 90 92 -
uspace/lib/wndmgt/src/wndmgt.c
r88d828e r68704ab 270 270 271 271 info->caption = caption; 272 info->flags = ipc_get_arg1(&answer); 272 273 *rinfo = info; 273 274 return EOK; -
uspace/lib/wndmgt/src/wndmgt_srv.c
r88d828e r68704ab 198 198 } 199 199 200 async_answer_ 0(icall, EOK);200 async_answer_1(icall, EOK, info->flags); 201 201 wndmgt_free_window_info(info); 202 202 } -
uspace/lib/wndmgt/test/wndmgt.c
r88d828e r68704ab 281 281 PCUT_ASSERT_NOT_NULL(resp.get_window_info_rinfo); 282 282 resp.get_window_info_rinfo->caption = str_dup("Hello"); 283 resp.get_window_info_rinfo->flags = 42; 283 284 PCUT_ASSERT_NOT_NULL(resp.get_window_info_rinfo->caption); 284 285 wnd_id = 1; … … 290 291 291 292 PCUT_ASSERT_STR_EQUALS("Hello", info->caption); 293 PCUT_ASSERT_INT_EQUALS(42, info->flags); 292 294 293 295 wndmgt_free_window_info(info); -
uspace/srv/hid/display/wmops.c
r88d828e r68704ab 143 143 } 144 144 145 info->flags = wnd->flags; 146 145 147 ds_display_unlock(wmclient->display); 146 148 *rinfo = info;
Note:
See TracChangeset
for help on using the changeset viewer.