Changeset 8eeffc1 in mainline for uspace/app/taskbar/wndlist.c


Ignore:
Timestamp:
2024-06-29T00:49:17Z (5 days ago)
Author:
Mohammed Q. Hussain <maastaar@…>
Children:
9a664b6d
Parents:
af3235d
Message:

Minimize an activated window when its name is clicked from taskbar

File:
1 edited

Legend:

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

    raf3235d r8eeffc1  
    232232
    233233        entry->visible = false;
     234        entry->maximized = true;
    234235
    235236        ui_pbutton_set_light(entry->button, active);
     
    722723        dev_id = entry->wndlist->ev_idev_id;
    723724
    724         (void) wndmgt_activate_window(entry->wndlist->wndmgt,
    725             dev_id, entry->wnd_id);
     725        if (!entry->maximized) {
     726                (void) wndmgt_activate_window(entry->wndlist->wndmgt,
     727                dev_id, entry->wnd_id);
     728
     729                entry->maximized = true;
     730        } else {
     731                (void) wndmgt_deactivate_window(entry->wndlist->wndmgt,
     732                dev_id, entry->wnd_id);
     733
     734                entry->maximized = false;
     735        }
    726736}
    727737
Note: See TracChangeset for help on using the changeset viewer.