Changeset 26edcd6 in mainline for uspace/lib/ui/src/ui.c


Ignore:
Timestamp:
2026-02-18T16:29:36Z (2 days ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
39f67f1
Parents:
2c12135
git-author:
Jiri Svoboda <jiri@…> (2026-02-18 18:29:31)
git-committer:
Jiri Svoboda <jiri@…> (2026-02-18 16:29:36)
Message:

Reposition windows with placement other than fullscreen.

Except popup windows, we cannot automatically fix those.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/ui.c

    r2c12135 r26edcd6  
    337337        ui->rect = *rect;
    338338
    339         /* Resize all fullscreen windows */
     339        /* Reposition/resize windows */
    340340        wnd = ui_window_first(ui);
    341341        while (wnd != NULL) {
    342                 if (wnd->placement == ui_wnd_place_full_screen) {
    343                         (void)ui_window_resize(wnd, rect);
    344                         ui_window_send_resize(wnd);
    345                 }
    346 
     342                ui_window_update_placement(wnd);
    347343                wnd = ui_window_next(wnd);
    348344        }
    349345
     346        /*
     347         * XXX Resizing cleared console GC so we need to repaint the
     348         * background.
     349         */
    350350        (void)ui_paint(ui);
    351351}
Note: See TracChangeset for help on using the changeset viewer.