From 33dd2c07c4d1739b16504f3f3136d1ba638d0b8b Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Wed, 25 Oct 2023 16:56:10 +0200 Subject: [PATCH] :bug: Fix #356 for GNOME 45 --- docs/changelog.md | 1 + extension.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index 3b285a5..053431b 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -16,6 +16,7 @@ SPDX-License-Identifier: CC-BY-4.0 #### Bug Fixes +- Fixed an issue which caused overly large windows on GNOME for certain applications (e.g. KPatience) if they were re-opened after being closed in maximized state. - Fixed an issue with the archive format which caused a failure when installing the effects via KDE Discover. ## [Burn My Windows 38](https://github.com/schneegans/Burn-My-Windows/releases/tag/v38) diff --git a/extension.js b/extension.js index fdf4d22..8d515a6 100644 --- a/extension.js +++ b/extension.js @@ -595,6 +595,10 @@ export default class BurnMyWindows extends Extension { actor._bmwOverviewCloneContainer.scale_y = 1.0; } + // Restore the original scale of the window actor. + actor.scale_x = 1.0; + actor.scale_y = 1.0; + // Remove the shader and mark it being re-usable for future animations. actor.remove_effect(shader); shader.returnToFactory();