fix: don't disable compositor widgets when a GUI with multigrid attaches

This commit is contained in:
Folke Lemaitre
2022-11-16 22:45:15 +01:00
parent c404f9b4ba
commit c7ee0fe38f

View File

@@ -204,7 +204,7 @@ void ui_refresh(void)
width = MIN(ui->width, width); width = MIN(ui->width, width);
height = MIN(ui->height, height); height = MIN(ui->height, height);
for (UIExtension j = 0; (int)j < kUIExtCount; j++) { for (UIExtension j = 0; (int)j < kUIExtCount; j++) {
bool in_compositor = ui->composed && compositor->ui_ext[j]; bool in_compositor = (ui->composed || j < kUIGlobalCount) && compositor->ui_ext[j];
ext_widgets[j] &= (ui->ui_ext[j] || in_compositor || inclusive); ext_widgets[j] &= (ui->ui_ext[j] || in_compositor || inclusive);
} }
} }