Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b48e680f in mainline for uspace/lib/ui/src/ui.c


Ignore:
Timestamp:
2021-11-03T10:23:28Z (3 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
ec8a1bf
Parents:
ce862ac
git-author:
Jiri Svoboda <jiri@…> (2021-11-02 19:19:50)
git-committer:
Jiri Svoboda <jiri@…> (2021-11-03 10:23:28)
Message:

Allow console application to set the terminal window caption

File:
1 edited

Legend:

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

    rce862ac rb48e680f  
    5050#include <ui/wdecor.h>
    5151#include <ui/window.h>
     52#include "../private/wdecor.h"
    5253#include "../private/window.h"
    5354#include "../private/ui.h"
     
    372373                return EOK;
    373374
     375        (void) console_set_caption(ui->console, "");
    374376        return console_gc_suspend(ui->cgc);
    375377}
     
    386388{
    387389        errno_t rc;
     390        ui_window_t *awnd;
    388391
    389392        if (ui->cgc == NULL)
     
    393396        if (rc != EOK)
    394397                return rc;
     398
     399        awnd = ui_window_get_active(ui);
     400        if (awnd != NULL)
     401                (void) console_set_caption(ui->console, awnd->wdecor->caption);
    395402
    396403        return gfx_cursor_set_visible(console_gc_get_ctx(ui->cgc), false);
Note: See TracChangeset for help on using the changeset viewer.