diff options
| author | allusive-dev <[email protected]> | 2023-10-30 21:23:51 +1100 |
|---|---|---|
| committer | allusive-dev <[email protected]> | 2023-10-30 21:23:51 +1100 |
| commit | 595d5e2b9840cd4d59384cf1ec774c581fa48352 (patch) | |
| tree | 3df12a83a1d99ae512899d4bdedefad08fb03c00 /src | |
| parent | Update README.md (diff) | |
| download | compfy-595d5e2b9840cd4d59384cf1ec774c581fa48352.tar.xz compfy-595d5e2b9840cd4d59384cf1ec774c581fa48352.zip | |
Whoops, accidently broke unmap animations. Fixed now1.0.2
Diffstat (limited to 'src')
| -rw-r--r-- | src/win.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -304,13 +304,13 @@ static inline void win_release_pixmap(backend_t *base, struct managed_win *w) { w->flags |= WIN_FLAGS_PIXMAP_NONE; } } -// static inline void win_release_oldpixmap(backend_t *base, struct managed_win *w) { -// log_debug("Releasing old_pixmap of window %#010x (%s)", w->base.id, w->name); -// if (w->old_win_image) { -// base->ops->release_image(base, w->old_win_image); -// w->old_win_image = NULL; -// } -// } +static inline void win_release_oldpixmap(backend_t *base, struct managed_win *w) { + log_debug("Releasing old_pixmap of window %#010x (%s)", w->base.id, w->name); + if (w->old_win_image) { + base->ops->release_image(base, w->old_win_image); + w->old_win_image = NULL; + } +} static inline void win_release_shadow(backend_t *base, struct managed_win *w) { log_debug("Releasing shadow of window %#010x (%s)", w->base.id, w->name); assert(w->shadow_image); @@ -403,7 +403,7 @@ void win_release_images(struct backend_base *backend, struct managed_win *w) { if (!win_check_flags_all(w, WIN_FLAGS_PIXMAP_NONE)) { assert(!win_check_flags_all(w, WIN_FLAGS_PIXMAP_STALE)); win_release_pixmap(backend, w); - // win_release_oldpixmap(backend, w); + win_release_oldpixmap(backend, w); } if (!win_check_flags_all(w, WIN_FLAGS_SHADOW_NONE)) { @@ -2426,7 +2426,7 @@ static void unmap_win_finish(session_t *ps, struct managed_win *w) { // Shadow image can be preserved. if (!win_check_flags_all(w, WIN_FLAGS_PIXMAP_NONE)) { win_release_pixmap(ps->backend_data, w); - // win_release_oldpixmap(ps->backend_data, w); + win_release_oldpixmap(ps->backend_data, w); } } else { assert(!w->win_image); |