Update event.c

This commit is contained in:
BitHeaven 2022-08-13 12:39:35 +05:00 committed by GitHub
parent e3c19cd7d1
commit 3588c404ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -257,7 +257,7 @@ static void configure_win(session_t *ps, xcb_configure_notify_event_t *ce) {
float fakeT =
(t - oldMoveDx * (float)ps->o.transition_length);
/* printf("X: %f,%f\n", fakeT, t); */
mw->moveTimeX = isnanf(fakeT) ? t : fakeT;
mw->moveTimeX = fakeT != fakeT ? t : fakeT;
} else {
mw->moveTimeX = t;
}
@ -268,7 +268,7 @@ static void configure_win(session_t *ps, xcb_configure_notify_event_t *ce) {
float fakeT =
(t - oldMoveDy * (float)ps->o.transition_length);
/* printf("Y: %f,%f\n", fakeT, t); */
mw->moveTimeY = isnanf(fakeT) ? t : fakeT;
mw->moveTimeY = fakeT != fakeT ? t : fakeT;
} else {
mw->moveTimeY = t;
}
@ -279,7 +279,7 @@ static void configure_win(session_t *ps, xcb_configure_notify_event_t *ce) {
float fakeT =
(t - oldMoveDw * (float)ps->o.transition_length);
/* printf("Y: %f,%f\n", fakeT, t); */
mw->moveTimeW = isnanf(fakeT) ? t : fakeT;
mw->moveTimeW = fakeT != fakeT ? t : fakeT;
} else {
mw->moveTimeW = t;
}
@ -290,7 +290,7 @@ static void configure_win(session_t *ps, xcb_configure_notify_event_t *ce) {
float fakeT =
(t - oldMoveDh * (float)ps->o.transition_length);
/* printf("Y: %f,%f\n", fakeT, t); */
mw->moveTimeH = isnanf(fakeT) ? t : fakeT;
mw->moveTimeH = fakeT != fakeT ? t : fakeT;
} else {
mw->moveTimeH = t;
}