From 22af9b261079d1db81138b9459fa585fa25ccc05 Mon Sep 17 00:00:00 2001 From: Kevin Langman Date: Thu, 9 Jan 2025 11:15:05 -0500 Subject: [PATCH] [DesktopCube@yare] 2.0.4 Fixes (#806) 1. Fix a bug that occurs when a windows workspace can't be determined 2. Use panel APIs to show/hide panels rather than using Clutter APIs against the panels actor (for better compatibility with the Blur Cinnamon extension) --- DesktopCube@yare/CHANGELOG.md | 9 +++++++++ .../files/DesktopCube@yare/5.4/extension.js | 10 ++++++++-- DesktopCube@yare/files/DesktopCube@yare/metadata.json | 2 +- .../files/DesktopCube@yare/po/DesktopCube@yare.pot | 4 ++-- DesktopCube@yare/files/DesktopCube@yare/po/ca.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/da.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/de.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/es.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/eu.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/fi.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/fr.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/hr.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/hu.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/it.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/nl.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/pt_BR.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/ro.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/ru.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/tr.po | 2 +- DesktopCube@yare/files/DesktopCube@yare/po/zh_CN.po | 2 +- 20 files changed, 36 insertions(+), 21 deletions(-) diff --git a/DesktopCube@yare/CHANGELOG.md b/DesktopCube@yare/CHANGELOG.md index 4f3d1e23..3ae806d9 100644 --- a/DesktopCube@yare/CHANGELOG.md +++ b/DesktopCube@yare/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 2.0.4 + +- Fix a bug that occurs when a windows workspace can't be determined +- Use panel APIs to show/hide panels rather than using Clutter APIs against the panels actor (for better compatibility with the Blur Cinnamon extension) + +## 2.0.3 + +- Fix issues when running under Cinnamon 6.4 + ## 2.0.2 - Added APIs used by the "Smart Panel" applet so it can use Desktop Cube in more cases diff --git a/DesktopCube@yare/files/DesktopCube@yare/5.4/extension.js b/DesktopCube@yare/files/DesktopCube@yare/5.4/extension.js index 3b996187..eac10068 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/5.4/extension.js +++ b/DesktopCube@yare/files/DesktopCube@yare/5.4/extension.js @@ -37,7 +37,13 @@ const setPanelsOpacity = function(opacity) { let panels = Main.getPanels(); for (let i = 0; i < panels.length; i++) { if (!panels[i]) continue; - panels[i].actor.opacity = opacity; + if (opacity === 0) { + panels[i].disable(); + } else if (opacity === 255) { + panels[i].enable(); + } else { + panels[i].actor.opacity = opacity; + } } }; @@ -320,7 +326,7 @@ Cube.prototype = { let windows = global.get_window_actors(); for (let i = 0; i < windows.length; i++) { let meta_window = windows[i].get_meta_window(); - if (meta_window.get_workspace().index() === workspaceIndex + if (meta_window && meta_window.get_workspace().index() === workspaceIndex && !meta_window.minimized && meta_window.get_window_type() !== Meta.WindowType.DESKTOP) { workspaceWindows.push(meta_window); diff --git a/DesktopCube@yare/files/DesktopCube@yare/metadata.json b/DesktopCube@yare/files/DesktopCube@yare/metadata.json index 46c82322..6a3b5611 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/metadata.json +++ b/DesktopCube@yare/files/DesktopCube@yare/metadata.json @@ -16,7 +16,7 @@ "4.6", "5.4" ], - "version": "2.0.3", + "version": "2.0.4", "uuid": "DesktopCube@yare", "name": "Desktop Cube", "description": "Compiz Cube-like animation for workspace switching", diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/DesktopCube@yare.pot b/DesktopCube@yare/files/DesktopCube@yare/po/DesktopCube@yare.pot index 80fe9c7b..aec0167e 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/DesktopCube@yare.pot +++ b/DesktopCube@yare/files/DesktopCube@yare/po/DesktopCube@yare.pot @@ -5,10 +5,10 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: DesktopCube@yare 2.0.2\n" +"Project-Id-Version: DesktopCube@yare 2.0.4\n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/ca.po b/DesktopCube@yare/files/DesktopCube@yare/po/ca.po index 4c2dfe4c..19df7c28 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/ca.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/ca.po @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2024-08-25 22:27+0200\n" "Last-Translator: \n" "Language-Team: Odyssey \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/da.po b/DesktopCube@yare/files/DesktopCube@yare/po/da.po index ce78737d..89605eed 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/da.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/da.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2022-08-07 15:06+0200\n" "Last-Translator: Alan Mortensen \n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/de.po b/DesktopCube@yare/files/DesktopCube@yare/po/de.po index 7e780dae..a5a02c27 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/de.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/de.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2021-03-02 22:50+0100\n" "Last-Translator: \n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/es.po b/DesktopCube@yare/files/DesktopCube@yare/po/es.po index 728d9c54..7b23859f 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/es.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/es.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2024-12-21 20:03+0000\n" "Last-Translator: \n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/eu.po b/DesktopCube@yare/files/DesktopCube@yare/po/eu.po index 67842675..fd6b3045 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/eu.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/eu.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2024-05-30 10:18+0200\n" "Last-Translator: Muxutruk \n" "Language-Team: Basque \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/fi.po b/DesktopCube@yare/files/DesktopCube@yare/po/fi.po index a0055f01..6bd962cd 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/fi.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/fi.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: DesktopCube@yare 1.1.0\n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: \n" "Last-Translator: Kimmo Kujansuu \n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/fr.po b/DesktopCube@yare/files/DesktopCube@yare/po/fr.po index c02e9544..0fcd5d49 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/fr.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/fr.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2024-12-22 01:10+0100\n" "Last-Translator: Claudiux \n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/hr.po b/DesktopCube@yare/files/DesktopCube@yare/po/hr.po index a141b356..d00c8bca 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/hr.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/hr.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: DesktopCube@yare\n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2017-04-30 16:57+0200\n" "Last-Translator: gogo \n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/hu.po b/DesktopCube@yare/files/DesktopCube@yare/po/hu.po index 6b0df400..ad1ef516 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/hu.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/hu.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2024-11-25 13:45+0100\n" "Last-Translator: Kálmán „KAMI” Szalai \n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/it.po b/DesktopCube@yare/files/DesktopCube@yare/po/it.po index c417def8..b9ac87a8 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/it.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/it.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2022-06-03 10:52+0200\n" "Last-Translator: Dragone2 \n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/nl.po b/DesktopCube@yare/files/DesktopCube@yare/po/nl.po index f34e97d6..a2bfb258 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/nl.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/nl.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2024-11-27 11:29+0100\n" "Last-Translator: qadzek\n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/pt_BR.po b/DesktopCube@yare/files/DesktopCube@yare/po/pt_BR.po index 8e48f0e1..8e5c7c6b 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/pt_BR.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/pt_BR.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2021-09-26 21:23-0300\n" "Last-Translator: Marcelo Aof\n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/ro.po b/DesktopCube@yare/files/DesktopCube@yare/po/ro.po index 373b4e6c..992093c3 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/ro.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/ro.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2022-08-06 01:55+0200\n" "Last-Translator: \n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/ru.po b/DesktopCube@yare/files/DesktopCube@yare/po/ru.po index 3cfa0772..e903f89c 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/ru.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/ru.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2023-12-03 14:51-0500\n" "Last-Translator: blogdron\n" "Language-Team: \n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/tr.po b/DesktopCube@yare/files/DesktopCube@yare/po/tr.po index 3035db70..cf4b053f 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/tr.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/tr.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: 2017-09-01 18:36+0300\n" "Last-Translator: Gökhan Gökkaya \n" "Language-Team: Linux Mint Türkiye\n" diff --git a/DesktopCube@yare/files/DesktopCube@yare/po/zh_CN.po b/DesktopCube@yare/files/DesktopCube@yare/po/zh_CN.po index e9e5ed7f..ec575ef9 100644 --- a/DesktopCube@yare/files/DesktopCube@yare/po/zh_CN.po +++ b/DesktopCube@yare/files/DesktopCube@yare/po/zh_CN.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-" "extensions/issues\n" -"POT-Creation-Date: 2024-12-21 14:16-0500\n" +"POT-Creation-Date: 2025-01-09 09:51-0500\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n"