patching in animations
This commit is contained in:
parent
51fdb8bcaa
commit
5d1276a58a
|
@ -203,7 +203,7 @@ static void configure_win(session_t *ps, xcb_configure_notify_event_t *ce) {
|
||||||
auto mw = (struct managed_win *)w;
|
auto mw = (struct managed_win *)w;
|
||||||
|
|
||||||
float t = get_time_ms();
|
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) {
|
if (!mw->isOld) {
|
||||||
/* mw->isOld = true; */
|
/* mw->isOld = true; */
|
||||||
|
|
||||||
|
|
|
@ -677,7 +677,7 @@ static struct managed_win *paint_preprocess(session_t *ps, bool *fade_running) {
|
||||||
}
|
}
|
||||||
|
|
||||||
win_stack_foreach_managed(w, &ps->window_stack) {
|
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);
|
&& (w->g.x != w->newX || w->g.y != w->newY || w->g.width != w->newW || w->g.height != w->newH);
|
||||||
|
|
||||||
if (posChanged) {
|
if (posChanged) {
|
||||||
|
|
|
@ -1191,8 +1191,8 @@ struct win *fill_win(session_t *ps, struct win *w) {
|
||||||
.invert_color = false,
|
.invert_color = false,
|
||||||
.blur_background = false,
|
.blur_background = false,
|
||||||
|
|
||||||
.oldX = -10000,
|
.oldX = -30000,
|
||||||
.oldY = -10000,
|
.oldY = -30000,
|
||||||
.oldW = 0,
|
.oldW = 0,
|
||||||
.oldH = 0,
|
.oldH = 0,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue