Changeset 29a5a99 in mainline for uspace/srv/hid/display/window.c


Ignore:
Timestamp:
2022-12-04T10:42:48Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
14b4577
Parents:
795c6f7
Message:

Maximized windows should avoid task bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/window.c

    r795c6f7 r29a5a99  
    150150                ds_seat_set_focus(seat, wnd);
    151151
     152        if ((params->flags & wndf_avoid) != 0)
     153                ds_display_update_max_rect(wnd->display);
     154
    152155        (void) ds_display_paint(wnd->display, NULL);
    153156
     
    183186        ds_display_remove_window(wnd);
    184187
     188        if ((wnd->flags & wndf_avoid) != 0)
     189                ds_display_update_max_rect(disp);
     190
    185191        mem_gc_delete(wnd->mgc);
    186192
     
    718724void ds_window_get_max_rect(ds_window_t *wnd, gfx_rect_t *rect)
    719725{
    720         *rect = wnd->display->rect;
     726        *rect = wnd->display->max_rect;
    721727}
    722728
     
    795801        wnd->rect = *nrect;
    796802
     803        if ((wnd->flags & wndf_avoid) != 0)
     804                ds_display_update_max_rect(wnd->display);
     805
    797806        (void) ds_display_paint(wnd->display, NULL);
    798807        return EOK;
Note: See TracChangeset for help on using the changeset viewer.