diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-06 07:50:44 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-06 07:50:44 +0200 |
commit | 500487edd30bbefed7046a52693673973c2cc913 (patch) | |
tree | 8ebbf1e68e6d659a2e2b401fa07c043efbb19462 | |
parent | cbdbab44fc28aaf298d04e5f26ebacc693df4425 (diff) |
Fixed truncated tab titles; unfocus input on right-click
IssueID #53
-rw-r--r-- | src/app.c | 1 | ||||
-rw-r--r-- | src/ui/documentwidget.c | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -852,6 +852,7 @@ iDocumentWidget *newTab_App(const iDocumentWidget *duplicateOf, iBool switchToNe | |||
852 | } | 852 | } |
853 | arrange_Widget(tabs); | 853 | arrange_Widget(tabs); |
854 | refresh_Widget(tabs); | 854 | refresh_Widget(tabs); |
855 | postCommandf_App("tab.created id:%s", cstr_String(id_Widget(as_Widget(doc)))); | ||
855 | return doc; | 856 | return doc; |
856 | } | 857 | } |
857 | 858 | ||
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 4ac48323..7a297aa7 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -1529,6 +1529,11 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd) | |||
1529 | animatePlayers_DocumentWidget_(d); | 1529 | animatePlayers_DocumentWidget_(d); |
1530 | return iFalse; | 1530 | return iFalse; |
1531 | } | 1531 | } |
1532 | else if (equal_Command(cmd, "tab.created")) { | ||
1533 | /* Space for tab buttons has changed. */ | ||
1534 | updateWindowTitle_DocumentWidget_(d); | ||
1535 | return iFalse; | ||
1536 | } | ||
1532 | else if (equal_Command(cmd, "server.showcert") && d == document_App()) { | 1537 | else if (equal_Command(cmd, "server.showcert") && d == document_App()) { |
1533 | const char *unchecked = red_ColorEscape "\u2610"; | 1538 | const char *unchecked = red_ColorEscape "\u2610"; |
1534 | const char *checked = green_ColorEscape "\u2611"; | 1539 | const char *checked = green_ColorEscape "\u2611"; |
@@ -2228,6 +2233,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
2228 | if (d->menu) { | 2233 | if (d->menu) { |
2229 | destroy_Widget(d->menu); | 2234 | destroy_Widget(d->menu); |
2230 | } | 2235 | } |
2236 | setFocus_Widget(NULL); | ||
2231 | iArray items; | 2237 | iArray items; |
2232 | init_Array(&items, sizeof(iMenuItem)); | 2238 | init_Array(&items, sizeof(iMenuItem)); |
2233 | if (d->contextLink) { | 2239 | if (d->contextLink) { |