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