Update event.c
This commit is contained in:
parent
e3c19cd7d1
commit
3588c404ff
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue