From 24c329329333b34922a04553bdc06a30367d26d9 Mon Sep 17 00:00:00 2001 From: Kevin Langman Date: Fri, 4 Oct 2024 10:32:35 -0400 Subject: [PATCH] [CinnamonMagicLamp@klangman] Fix for restore/maximize effects (#762) The ShouldAnimateManager was failing to call the original Cinnamon _shouldAnimate() function for cases where the event context was not one that the manager is currently interested in. This meant that some Cinnamon's effects like maximize and restore (and maybe others) were failing to execute. --- CinnamonMagicLamp@klangman/CHANGELOG.md | 4 +++ CinnamonMagicLamp@klangman/README.md | 6 ++-- .../5.6/ShouldAnimateManager.js | 29 ++++++++++--------- .../CinnamonMagicLamp@klangman/metadata.json | 2 +- 4 files changed, 23 insertions(+), 18 deletions(-) diff --git a/CinnamonMagicLamp@klangman/CHANGELOG.md b/CinnamonMagicLamp@klangman/CHANGELOG.md index 9022c4c7..62d3ed7b 100644 --- a/CinnamonMagicLamp@klangman/CHANGELOG.md +++ b/CinnamonMagicLamp@klangman/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.0.3 + +* Fix an issue that caused some default Cinnamon effect (i.e. Restore and Maximize effects) to be disabled when Magic Lamp effects were enabled. + ## 1.0.2 * Removed the need to change the System-Settings->Effect settings to "none" for the Minimize/Unminimize options. This is now accomplished by intercepting a cinnamon API and forcing it to disable the Cinnamon Minimize/Unminimize effects while the MagicLamp extension is enabled. diff --git a/CinnamonMagicLamp@klangman/README.md b/CinnamonMagicLamp@klangman/README.md index 790edfda..cc618ca3 100644 --- a/CinnamonMagicLamp@klangman/README.md +++ b/CinnamonMagicLamp@klangman/README.md @@ -1,6 +1,6 @@ # CinnamonMagicLamp -A compiz like magic lamp effect for the Cinnamon desktop based on hermes83's Gnome extension (https://github.com/hermes83/compiz-alike-magic-lamp-effect) +A compiz like magic lamp effect for the Cinnamon desktop based on hermes83's Gnome extension (https://github.com/hermes83/compiz-alike-magic-lamp-effect). **Please see Feedback section below to report issues, DO NOT open issues on hermes83's Gnome extension github** This Cinnamon extension will create a Magic Lamp minimize and unminimize effect @@ -8,13 +8,13 @@ This Cinnamon extension will create a Magic Lamp minimize and unminimize effect Cinnamon 5.6.8 (Mint 21.1) or better. -To properly animate in relation to the window-list icon, you need to be using a window-list applet that sets the icon geometry. Otherwise the animation will animate from/to the middle of the monitor on the Cinnamon panel edge rather than an animation specific to the window. The pre-installed "Window list" and "Grouped window list" applets work fine as does "Cassia Window list" (version 2.3.2 or better). CobiWindowList does not currently set icon geometry. +To properly animate in relation to the window-list icon, you need to be using a window-list applet that sets the icon geometry. Otherwise the animation will animate from/to the middle of the monitor on the Cinnamon panel edge rather than an animation specific to the window and it's window-list icon. The pre-installed "Window list" and "Grouped window list" applets work fine as does "Cassia Window list" (version 2.3.2 or better). CobiWindowList does not currently set icon geometry. This extension requires no other packages other than what is included in a default installation of Mint 21.1 or better. ## Known issues -The Steam client for some reason does not support window cloning when minimized, therefore the "minimize" effect will show a blank/black window rather than the correct window contents. Other application might have the same behaviour but I have not seen any yet. +For some reason the Steam client does not support window cloning when minimized, therefore the "minimize" effect will show a blank/black window rather than the correct window contents. I have not seen any other applications show this behaviour. ## Installation diff --git a/CinnamonMagicLamp@klangman/files/CinnamonMagicLamp@klangman/5.6/ShouldAnimateManager.js b/CinnamonMagicLamp@klangman/files/CinnamonMagicLamp@klangman/5.6/ShouldAnimateManager.js index daaca1da..15e2b0b6 100644 --- a/CinnamonMagicLamp@klangman/files/CinnamonMagicLamp@klangman/5.6/ShouldAnimateManager.js +++ b/CinnamonMagicLamp@klangman/files/CinnamonMagicLamp@klangman/5.6/ShouldAnimateManager.js @@ -68,7 +68,6 @@ class ShouldAnimateManager { } disconnect() { - log( "in disconnect" ); for (let i=0 ; i