Changeset cc90846 in mainline


Ignore:
Timestamp:
2020-01-27T13:07:17Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f5191b4
Parents:
01c2759
git-author:
Jiri Svoboda <jiri@…> (2020-01-26 18:07:01)
git-committer:
Jiri Svoboda <jiri@…> (2020-01-27 13:07:17)
Message:

Repaint display when window is created or destroyed

Location:
uspace/srv/hid/display
Files:
2 edited

Legend:

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

    r01c2759 rcc90846  
    7171            wnd->id);
    7272
     73        /* XXX All the below should probably be part of ds_window_create() */
    7374        wnd->dpos.x = ((wnd->id - 1) & 1) * 400;
    7475        wnd->dpos.y = ((wnd->id - 1) & 2) / 2 * 300;
     
    7677        seat = ds_display_first_seat(client->display);
    7778        ds_seat_set_focus(seat, wnd);
     79        (void) ds_display_paint(wnd->display, NULL);
    7880
    7981        *rwnd_id = wnd->id;
  • uspace/srv/hid/display/window.c

    r01c2759 rcc90846  
    329329void ds_window_destroy(ds_window_t *wnd)
    330330{
     331        ds_display_t *disp;
     332
     333        disp = wnd->display;
     334
    331335        ds_client_remove_window(wnd);
    332336        ds_display_remove_window(wnd);
     337
    333338        (void) gfx_context_delete(wnd->gc);
    334339        if (wnd->bitmap != NULL)
     
    336341
    337342        free(wnd);
     343
     344        (void) ds_display_paint(disp, NULL);
    338345}
    339346
Note: See TracChangeset for help on using the changeset viewer.