diff options
-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) { |