# HG changeset patch # User Olaf Wintermann # Date 1762871558 -3600 # Node ID 0fbaac4aafc83f861cf796ed6ea30ac794e92719 # Parent 0804fc9298f6a184a9ec3eeaf515b5931d172dd4 fix win32 drawing issue after layout changes diff -r 0804fc9298f6 -r 0fbaac4aafc8 ui/win32/grid.c --- a/ui/win32/grid.c Tue Nov 11 14:27:54 2025 +0100 +++ b/ui/win32/grid.c Tue Nov 11 15:32:38 2025 +0100 @@ -293,9 +293,9 @@ child_x = col->pos + elm->layout.margin.left; child_y = row->pos + elm->layout.margin.top; - SetWindowPos(elm->widget->hwnd, NULL, child_x, child_y, child_width, child_height, SWP_NOZORDER); + SetWindowPos(elm->widget->hwnd, NULL, child_x, child_y, child_width, child_height, SWP_NOZORDER | SWP_NOACTIVATE); InvalidateRect(elm->widget->hwnd, NULL, TRUE); - UpdateWindow(elm->widget->hwnd); + //UpdateWindow(elm->widget->hwnd); if (elm->widget->layout) { elm->widget->layout(elm->widget->layoutmanager, child_width, child_height); }