[NTUSER] Missing "X" on "Folder" pane when Right Click > Explore from Desktop icons & Rapps toolbar errors (#5068)

Fix for right-clicking on 'My Computer' and selecting 'explore' and there is no 'X' for the title bar in the Folders pane
Also fixes Rapps missing toolbar combo box and edit box controls that were not displayed.

This is a complete revert of #4995 (commit 7866eb2) while still retaining its fixes.

CORE-18830, CORE-18817

Co-authored-by: I_Kill_Bugs
This commit is contained in:
Doug Lyons
2023-02-13 15:27:40 +01:00
committed by GitHub
co-authored by I_Kill_Bugs
parent 97db8a258d
commit 57eb2a6bf4
+2 -3
View File
@@ -1979,7 +1979,7 @@ co_WinPosSetWindowPos(
Window->state |= WNDS_SENDNCPAINT;
}
if (!(WinPos.flags & SWP_NOREDRAW))
if (!(WinPos.flags & SWP_NOREDRAW) && ((WinPos.flags & SWP_AGG_STATUSFLAGS) != SWP_AGG_NOPOSCHANGE))
{
/* Determine the new visible region */
VisAfter = VIS_ComputeVisibleRegion(Window, FALSE, FALSE,
@@ -2100,8 +2100,7 @@ co_WinPosSetWindowPos(
}
/* We need to redraw what wasn't visible before or force a redraw */
if ((WinPos.flags & (SWP_FRAMECHANGED | SWP_SHOWWINDOW)) ||
(((WinPos.flags & SWP_AGG_NOGEOMETRYCHANGE) != SWP_AGG_NOGEOMETRYCHANGE) && VisAfter != NULL))
if (VisAfter != NULL)
{
PREGION DirtyRgn = IntSysCreateRectpRgn(0, 0, 0, 0);
if (DirtyRgn)