Made Windows resizes use SWP_NOREDRAW. This makes checking the Spaced box faster, at least.
This commit is contained in:
parent
a517beccae
commit
5deac6cfd6
|
@ -237,6 +237,9 @@ static LRESULT CALLBACK containerWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
|
|||
if (GetClientRect(c->hwnd, &r) == 0)
|
||||
logLastError("error getting client rect for resize in containerWndProc()");
|
||||
resize(cc, &r);
|
||||
// we used SWP_NOREDRAW for each resize so we can do this here
|
||||
if (InvalidateRect(c->hwnd, NULL, TRUE) == 0)
|
||||
logLastError("error queueing redraw after resize in containerWndProc()");
|
||||
return 0;
|
||||
|
||||
// and this is run only on the initial parent
|
||||
|
|
|
@ -119,7 +119,7 @@ void setExStyle(HWND hwnd, DWORD exstyle)
|
|||
SetWindowLongPtrW(hwnd, GWL_EXSTYLE, (LONG_PTR) exstyle);
|
||||
}
|
||||
|
||||
#define swpflags (SWP_NOACTIVATE | SWP_NOOWNERZORDER)
|
||||
#define swpflags (SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOREDRAW)
|
||||
|
||||
void moveWindow(HWND hwnd, intmax_t x, intmax_t y, intmax_t width, intmax_t height)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue