Changeset 9a664b6d in mainline
- Timestamp:
- 2024-06-29T18:44:23Z (5 months ago)
- Children:
- 78376a43
- Parents:
- 8eeffc1
- Location:
- uspace/app/taskbar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskbar/types/wndlist.h
r8eeffc1 r9a664b6d 59 59 /** Window button rectangle */ 60 60 gfx_rect_t rect; 61 /** Window maximized **/62 bool maximized;63 61 } wndlist_entry_t; 64 62 -
uspace/app/taskbar/wndlist.c
r8eeffc1 r9a664b6d 232 232 233 233 entry->visible = false; 234 entry->maximized = true;235 234 236 235 ui_pbutton_set_light(entry->button, active); … … 718 717 { 719 718 wndlist_entry_t *entry = (wndlist_entry_t *)arg; 719 wndmgt_window_info_t *winfo = NULL; 720 720 sysarg_t dev_id; 721 errno_t rc; 722 bool minimized = false; 721 723 722 724 /* ID of device that clicked the button */ 723 725 dev_id = entry->wndlist->ev_idev_id; 724 726 725 if (!entry->maximized) { 727 rc = wndmgt_get_window_info(entry->wndlist->wndmgt, 728 entry->wnd_id, &winfo); 729 if (rc == EOK) { 730 minimized = (winfo->flags & wndf_minimized) == 0; 731 } 732 733 if (!minimized) { 726 734 (void) wndmgt_activate_window(entry->wndlist->wndmgt, 727 735 dev_id, entry->wnd_id); 728 729 entry->maximized = true;730 736 } else { 731 737 (void) wndmgt_deactivate_window(entry->wndlist->wndmgt, 732 738 dev_id, entry->wnd_id); 733 734 entry->maximized = false;735 739 } 736 740 }
Note:
See TracChangeset
for help on using the changeset viewer.