patching in animations

This commit is contained in:
jon 2020-07-07 18:43:55 +02:00
parent 51fdb8bcaa
commit 5d1276a58a
3 changed files with 4 additions and 4 deletions

View File

@ -203,7 +203,7 @@ static void configure_win(session_t *ps, xcb_configure_notify_event_t *ce) {
auto mw = (struct managed_win *)w;
float t = get_time_ms();
if (mw->oldX == -10000 && mw->oldY == -10000 && mw->oldW == 0 && mw->oldH == 0) {
if (mw->oldX == -30000 && mw->oldY == -30000 && mw->oldW == 0 && mw->oldH == 0) {
if (!mw->isOld) {
/* mw->isOld = true; */

View File

@ -677,7 +677,7 @@ static struct managed_win *paint_preprocess(session_t *ps, bool *fade_running) {
}
win_stack_foreach_managed(w, &ps->window_stack) {
bool posChanged = (w->oldX != -10000 && w->oldY != -10000 && w->oldW != 0 && w->oldH != 0)
bool posChanged = (w->oldX != -30000 && w->oldY != -30000 && w->oldW != 0 && w->oldH != 0)
&& (w->g.x != w->newX || w->g.y != w->newY || w->g.width != w->newW || w->g.height != w->newH);
if (posChanged) {

View File

@ -1191,8 +1191,8 @@ struct win *fill_win(session_t *ps, struct win *w) {
.invert_color = false,
.blur_background = false,
.oldX = -10000,
.oldY = -10000,
.oldX = -30000,
.oldY = -30000,
.oldW = 0,
.oldH = 0,