Skip to content

Commit

Permalink
[DesktopCube@yare] 2.0.4 Fixes (#806)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
klangman authored Jan 9, 2025
1 parent fe76390 commit 22af9b2
Show file tree
Hide file tree
Showing 20 changed files with 36 additions and 21 deletions.
9 changes: 9 additions & 0 deletions DesktopCube@yare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 8 additions & 2 deletions DesktopCube@yare/files/DesktopCube@yare/5.4/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
};

Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions DesktopCube@yare/files/DesktopCube@yare/po/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/ca.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/da.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/eu.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: Basque <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/hr.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/hu.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/ro.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/tr.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: Linux Mint Türkiye\n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 22af9b2

Please sign in to comment.