mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 04:58:06 +02:00
Fix for the Root Window 100% CPU bug use lParam in
winRedrawAllProcShadowGDI as indicator which window initiated the call
since EnumerateThreadWindows is called from WM_PAINT handler too and
invalidates the fresh painted window right after painting it.
This commit is contained in:
parent
26b36ab5d5
commit
78cc1a5768
1 changed files with 4 additions and 1 deletions
|
|
@ -228,6 +228,8 @@ winQueryRGBBitsAndMasks (ScreenPtr pScreen)
|
|||
BOOL CALLBACK
|
||||
winRedrawAllProcShadowGDI (HWND hwnd, LPARAM lParam)
|
||||
{
|
||||
if (hwnd == (HWND)lParam)
|
||||
return TRUE;
|
||||
InvalidateRect (hwnd, NULL, FALSE);
|
||||
UpdateWindow (hwnd);
|
||||
return TRUE;
|
||||
|
|
@ -839,7 +841,8 @@ winBltExposedRegionsShadowGDI (ScreenPtr pScreen)
|
|||
#ifdef XWIN_MULTIWINDOW
|
||||
/* Redraw all windows */
|
||||
if (pScreenInfo->fMultiWindow)
|
||||
EnumThreadWindows(g_dwCurrentThreadID, winRedrawAllProcShadowGDI, 0);
|
||||
EnumThreadWindows(g_dwCurrentThreadID, winRedrawAllProcShadowGDI,
|
||||
(LPARAM)pScreenPriv->hwndScreen);
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue