Changeset 2f106b0 in mainline for uspace/app/taskbar/taskbar.c


Ignore:
Timestamp:
2022-11-12T20:48:05Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a5c7b865
Parents:
c48192e
Message:

Do not show window buttons that do not fit

File:
1 edited

Legend:

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

    rc48192e r2f106b0  
    192192        }
    193193
     194        if (ui_is_textmode(taskbar->ui)) {
     195                rect.p0.x = params.rect.p0.x + 9;
     196                rect.p0.y = 0;
     197                rect.p1.x = params.rect.p1.x - 10;
     198                rect.p1.y = 1;
     199        } else {
     200                rect.p0.x = params.rect.p0.x + 90;
     201                rect.p0.y = 4;
     202                rect.p1.x = params.rect.p1.x - 84;
     203                rect.p1.y = 32 - 4;
     204        }
     205        wndlist_set_rect(taskbar->wndlist, &rect);
     206
    194207        rc = wndlist_open_wm(taskbar->wndlist, wndmgt_svc);
    195208        if (rc != EOK) {
     
    249262void taskbar_destroy(taskbar_t *taskbar)
    250263{
    251         ui_fixed_remove(taskbar->fixed,  taskbar_clock_ctl(taskbar->clock));
     264        ui_fixed_remove(taskbar->fixed, taskbar_clock_ctl(taskbar->clock));
    252265        taskbar_clock_destroy(taskbar->clock);
    253266        ui_window_destroy(taskbar->window);
Note: See TracChangeset for help on using the changeset viewer.