Changeset 3a6d44b7 in mainline for uspace/app/taskbar/wndlist.c
- Timestamp:
- 2022-11-07T17:42:51Z (2 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60ebe63
- Parents:
- f1f433d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskbar/wndlist.c
rf1f433d r3a6d44b7 50 50 static void wndlist_wm_window_changed(void *, sysarg_t); 51 51 52 /** Window list WM callbacks */ 52 53 static wndmgt_cb_t wndlist_wndmgt_cb = { 53 54 .window_added = wndlist_wm_window_added, 54 55 .window_removed = wndlist_wm_window_removed, 55 56 .window_changed = wndlist_wm_window_changed 57 }; 58 59 static void wndlist_button_clicked(ui_pbutton_t *, void *); 60 61 /** Window list button callbacks */ 62 static ui_pbutton_cb_t wndlist_button_cb = { 63 .clicked = wndlist_button_clicked 56 64 }; 57 65 … … 186 194 /* Set the button rectangle */ 187 195 wndlist_set_entry_rect(wndlist, entry); 196 197 /* Set button callbacks */ 198 ui_pbutton_set_cb(entry->button, &wndlist_button_cb, (void *)entry); 188 199 189 200 rc = ui_fixed_add(wndlist->fixed, ui_pbutton_ctl(entry->button)); … … 340 351 wndlist_entry_t *entry; 341 352 342 printf("wm_window_removed: wndlist=%p wnd_id=%zu\n",343 (void *)wndlist, wnd_id);344 345 353 entry = wndlist_entry_by_id(wndlist, wnd_id); 346 354 if (entry == NULL) … … 361 369 wndlist_entry_t *entry; 362 370 errno_t rc; 363 364 printf("wm_window_changed: wndlist=%p wnd_id=%zu\n",365 (void *)wndlist, wnd_id);366 371 367 372 entry = wndlist_entry_by_id(wndlist, wnd_id); … … 440 445 } 441 446 447 /** Window button was clicked. 448 * 449 * @param pbutton Push button 450 * @param arg Argument (wdnlist_entry_t *) 451 */ 452 static void wndlist_button_clicked(ui_pbutton_t *pbutton, void *arg) 453 { 454 wndlist_entry_t *entry = (wndlist_entry_t *)arg; 455 sysarg_t seat_id; 456 457 seat_id = 0; // TODO Multi-seat 458 459 (void) wndmgt_activate_window(entry->wndlist->wndmgt, 460 seat_id, entry->wnd_id); 461 } 462 442 463 /** @} 443 464 */
Note:
See TracChangeset
for help on using the changeset viewer.