Changeset a3086a4 in mainline for uspace/app/taskbar/wndlist.c


Ignore:
Timestamp:
2024-06-29T18:46:37Z (5 days ago)
Author:
GitHub <noreply@…>
Parents:
e3997a8 (diff), 9a664b6d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Mohammed Q. Hussain <maastaar@…> (2024-06-29 18:46:37)
git-committer:
GitHub <noreply@…> (2024-06-29 18:46:37)
Message:

Merge 9a664b6dd10624fd8da3c9a74ecc75ab40ba4863 into e3997a897c134db63e3b799a0b3885fb90fd2731

File:
1 edited

Legend:

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

    re3997a8 ra3086a4  
    717717{
    718718        wndlist_entry_t *entry = (wndlist_entry_t *)arg;
     719        wndmgt_window_info_t *winfo = NULL;
    719720        sysarg_t dev_id;
     721        errno_t rc;
     722        bool minimized = false;
    720723
    721724        /* ID of device that clicked the button */
    722725        dev_id = entry->wndlist->ev_idev_id;
    723726
    724         (void) wndmgt_activate_window(entry->wndlist->wndmgt,
    725             dev_id, entry->wnd_id);
     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) {
     734                (void) wndmgt_activate_window(entry->wndlist->wndmgt,
     735                dev_id, entry->wnd_id);
     736        } else {
     737                (void) wndmgt_deactivate_window(entry->wndlist->wndmgt,
     738                dev_id, entry->wnd_id);
     739        }
    726740}
    727741
Note: See TracChangeset for help on using the changeset viewer.