summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-29 16:53:39 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-29 16:53:39 +0300
commit5039199857ed0b1644a319d3cc514d63c3e3db45 (patch)
treee57e58592229e4bfed50ce12aa859ee07ee864c2 /src/ui/documentwidget.c
parent190684240e303ad708e0522432849332011964f3 (diff)
Working on multiple UI roots
Added a menu for changing the split mode.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 21c0aa23..410b793e 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -3969,6 +3969,11 @@ static iBool render_DocumentWidget_(const iDocumentWidget *d, iDrawContext *ctx,
3969} 3969}
3970 3970
3971static void prerender_DocumentWidget_(iAny *context) { 3971static void prerender_DocumentWidget_(iAny *context) {
3972 if (current_Root() == NULL) {
3973 /* The widget has probably been removed from the widget tree, pending destruction.
3974 Tickers are not cancelled until the widget is actually destroyed. */
3975 return;
3976 }
3972 const iDocumentWidget *d = context; 3977 const iDocumentWidget *d = context;
3973 iDrawContext ctx = { 3978 iDrawContext ctx = {
3974 .widget = d, 3979 .widget = d,