Skip to content

Commit

Permalink
minor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
RamonUnch authored Jul 1, 2021
1 parent a8f67e2 commit f35728b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,11 +887,13 @@ static void MoveResizeWindowThread(struct windowRR *lw, UINT flag)
if (lw->end&1 && conf.FullWin) Sleep(conf.RefreshRate+5); // at least 5ms...

SetWindowPos(hwnd, NULL, lw->x, lw->y, lw->width, lw->height, flag);
if (lw->end&1) {
RedrawWindow(hwnd, NULL, NULL, RDW_ERASE|RDW_FRAME|RDW_INVALIDATE|RDW_ALLCHILDREN);
if (lw->end&1 && !conf.FullWin && state.origin.maximized) {
InvalidateRect(hwnd, NULL, FALSE);
lw->hwnd = NULL;
return;
}


if (conf.RefreshRate) Sleep(conf.RefreshRate);

lw->hwnd = NULL;
Expand Down

0 comments on commit f35728b

Please sign in to comment.