aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-10-30 21:23:51 +1100
committerallusive-dev <[email protected]>2023-10-30 21:23:51 +1100
commit595d5e2b9840cd4d59384cf1ec774c581fa48352 (patch)
tree3df12a83a1d99ae512899d4bdedefad08fb03c00
parentUpdate README.md (diff)
downloadcompfy-1.0.2.tar.xz
compfy-1.0.2.zip
Whoops, accidently broke unmap animations. Fixed now1.0.2
-rw-r--r--src/win.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/win.c b/src/win.c
index 9710a56..1b645af 100644
--- a/src/win.c
+++ b/src/win.c
@@ -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);