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;
|
||||
|
||||
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; */
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue